mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Remove confirmation dialog on plate slicing done, request user attention instead. #537
This commit is contained in:
parent
a2a35f47f6
commit
da7a668c94
2 changed files with 4 additions and 2 deletions
|
@ -172,6 +172,9 @@ sub notify {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($message) = @_;
|
my ($message) = @_;
|
||||||
|
|
||||||
|
my $frame = $self->GetTopWindow;
|
||||||
|
$frame->RequestUserAttention unless ($frame->IsActive);
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
$self->{growler}->notify(Event => 'SKEIN_DONE', Title => 'Slicing Done!', Message => $message)
|
$self->{growler}->notify(Event => 'SKEIN_DONE', Title => 'Slicing Done!', Message => $message)
|
||||||
if $self->{growler};
|
if $self->{growler};
|
||||||
|
|
|
@ -537,7 +537,6 @@ sub export_gcode2 {
|
||||||
$message .= sprintf " %.1f seconds", $print->processing_time - $minutes*60;
|
$message .= sprintf " %.1f seconds", $print->processing_time - $minutes*60;
|
||||||
}
|
}
|
||||||
$message .= ".";
|
$message .= ".";
|
||||||
&Wx::wxTheApp->notify($message);
|
|
||||||
$params{on_completed}->($message);
|
$params{on_completed}->($message);
|
||||||
$print->cleanup;
|
$print->cleanup;
|
||||||
};
|
};
|
||||||
|
@ -553,7 +552,7 @@ sub on_export_completed {
|
||||||
$self->statusbar->SetCancelCallback(undef);
|
$self->statusbar->SetCancelCallback(undef);
|
||||||
$self->statusbar->StopBusy;
|
$self->statusbar->StopBusy;
|
||||||
$self->statusbar->SetStatusText("G-code file exported to $self->{output_file}");
|
$self->statusbar->SetStatusText("G-code file exported to $self->{output_file}");
|
||||||
Wx::MessageDialog->new($self, $message, 'Slicing Done!', wxOK | wxICON_INFORMATION)->ShowModal;
|
&Wx::wxTheApp->notify($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub on_export_failed {
|
sub on_export_failed {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue