mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Improve message dialog texts a bit.
This commit is contained in:
parent
8042d5d701
commit
314772b314
1 changed files with 6 additions and 6 deletions
|
@ -76,7 +76,7 @@ sub do_slice {
|
||||||
$copies = $Slic3r::duplicate if $Slic3r::duplicate > 1;
|
$copies = $Slic3r::duplicate if $Slic3r::duplicate > 1;
|
||||||
if ($copies > 1) {
|
if ($copies > 1) {
|
||||||
my $confirmation = Wx::MessageDialog->new($self, "Are you sure you want to slice $copies copies?",
|
my $confirmation = Wx::MessageDialog->new($self, "Are you sure you want to slice $copies copies?",
|
||||||
'Confirm', wxICON_QUESTION | wxOK | wxCANCEL);
|
'Multiple Copies', wxICON_QUESTION | wxOK | wxCANCEL);
|
||||||
return unless $confirmation->ShowModal == wxID_OK;
|
return unless $confirmation->ShowModal == wxID_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,13 +95,13 @@ sub do_slice {
|
||||||
$last_input_file = $input_file;
|
$last_input_file = $input_file;
|
||||||
} else {
|
} else {
|
||||||
if (!defined $last_input_file) {
|
if (!defined $last_input_file) {
|
||||||
Wx::MessageDialog->new($self, "No previously sliced file",
|
Wx::MessageDialog->new($self, "No previously sliced file.",
|
||||||
'Confirm', wxICON_ERROR | wxOK)->ShowModal();
|
'Error', wxICON_ERROR | wxOK)->ShowModal();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (! -e $last_input_file) {
|
if (! -e $last_input_file) {
|
||||||
Wx::MessageDialog->new($self, "Cannot find previously sliced file!",
|
Wx::MessageDialog->new($self, "Previously sliced file ($last_input_file) not found.",
|
||||||
'Confirm', wxICON_ERROR | wxOK)->ShowModal();
|
'File Not Found', wxICON_ERROR | wxOK)->ShowModal();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$input_file = $last_input_file;
|
$input_file = $last_input_file;
|
||||||
|
@ -166,7 +166,7 @@ sub do_slice {
|
||||||
}
|
}
|
||||||
$message .= ".";
|
$message .= ".";
|
||||||
Slic3r::GUI::notify($message);
|
Slic3r::GUI::notify($message);
|
||||||
Wx::MessageDialog->new($self, $message, 'Done!',
|
Wx::MessageDialog->new($self, $message, 'Slicing Done!',
|
||||||
wxOK | wxICON_INFORMATION)->ShowModal;
|
wxOK | wxICON_INFORMATION)->ShowModal;
|
||||||
};
|
};
|
||||||
Slic3r::GUI::catch_error($self, sub { $process_dialog->Destroy if $process_dialog });
|
Slic3r::GUI::catch_error($self, sub { $process_dialog->Destroy if $process_dialog });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue