fix for progressindicator not being destroyed after export to png
This commit is contained in:
parent
ec571aec44
commit
10b19c8604
@ -61,7 +61,7 @@ sub new {
|
|||||||
eval { Wx::ToolTip::SetAutoPop(32767) };
|
eval { Wx::ToolTip::SetAutoPop(32767) };
|
||||||
|
|
||||||
# initialize status bar
|
# initialize status bar
|
||||||
$self->{statusbar} = Slic3r::GUI::ProgressStatusBar->new($self, -1);
|
$self->{statusbar} = Slic3r::GUI::ProgressStatusBar->new($self, Wx::NewId);
|
||||||
$self->{statusbar}->SetStatusText(L("Version ").$Slic3r::VERSION.L(" - Remember to check for updates at http://github.com/prusa3d/slic3r/releases"));
|
$self->{statusbar}->SetStatusText(L("Version ").$Slic3r::VERSION.L(" - Remember to check for updates at http://github.com/prusa3d/slic3r/releases"));
|
||||||
$self->SetStatusBar($self->{statusbar});
|
$self->SetStatusBar($self->{statusbar});
|
||||||
|
|
||||||
|
@ -378,10 +378,10 @@ void PrintController::slice_to_png()
|
|||||||
|
|
||||||
} catch (std::exception& e) {
|
} catch (std::exception& e) {
|
||||||
pri->cancel();
|
pri->cancel();
|
||||||
print_->progressindicator = pbak;
|
|
||||||
report_issue(IssueType::ERR, e.what(), _(L("Exception occured")));
|
report_issue(IssueType::ERR, e.what(), _(L("Exception occured")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_->progressindicator = pbak;
|
||||||
scale_back();
|
scale_back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user