From a623630614c2fde3ad4abfd64035e8905bc08526 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Thu, 22 Oct 2020 08:28:28 +0200 Subject: [PATCH] exportToRemovableFinished notification fix in simple mode --- src/slic3r/GUI/Plater.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index b62ff4dcc8..8846db8be7 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3616,16 +3616,16 @@ void Plater::priv::on_process_completed(SlicingProcessCompletedEvent &evt) if (wxGetApp().get_mode() == comSimple) sidebar->set_btn_label(ActionButtonType::abReslice, "Slice now"); show_action_buttons(true); + } else { + if(wxGetApp().get_mode() == comSimple) { + show_action_buttons(false); + } + // If writing to removable drive was scheduled, show notification with eject button + if (this->writing_to_removable_device) { + show_action_buttons(false); + notification_manager->push_notification(NotificationType::ExportToRemovableFinished, *q->get_current_canvas3D()); + } } - else if (wxGetApp().get_mode() == comSimple) - { - show_action_buttons(false); - } - else if (this->writing_to_removable_device) - { - show_action_buttons(false); - notification_manager->push_notification(NotificationType::ExportToRemovableFinished, *q->get_current_canvas3D()); - } this->writing_to_removable_device = false; }