Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-12-14 19:35:06 +0300
committerbubnikv <bubnikv@gmail.com>2017-12-14 19:35:06 +0300
commit88e9ba510b966490212238ad32f7b3cc895696fe (patch)
tree62c4aba829cc591fb4ad024666e1876b7e42d5c5
parent4bbe328117687ca34889cff4c72e237b25417379 (diff)
Run the wizard from OnIdle routine to be executed first after the UIversion_1.38.4
is initialized. This is necessary for the UI to initialize correctly on OSX.
-rw-r--r--lib/Slic3r/GUI.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Slic3r/GUI.pm b/lib/Slic3r/GUI.pm
index 5176c9c91..6e5279727 100644
--- a/lib/Slic3r/GUI.pm
+++ b/lib/Slic3r/GUI.pm
@@ -116,9 +116,6 @@ sub OnInit {
no_plater => $no_plater,
);
$self->SetTopWindow($frame);
- if ($run_wizard) {
- $self->{mainframe}->config_wizard;
- }
EVT_IDLE($frame, sub {
while (my $cb = shift @cb) {
@@ -126,6 +123,14 @@ sub OnInit {
}
$self->{app_config}->save if $self->{app_config}->dirty;
});
+
+ if ($run_wizard) {
+ # On OSX the UI was not initialized correctly if the wizard was called
+ # before the UI was up and running.
+ $self->CallAfter(sub {
+ $self->{mainframe}->config_wizard;
+ });
+ }
return 1;
}