From c18280016ab6a1f1227d782a527a7a59df0d8d5d Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 5 Oct 2021 14:27:12 +0200 Subject: [PATCH] Tech ENABLE_PREVIEW_LAYOUT - Follow-up of 9a24b08e2890481f25941ba5e9a8a59fcb315d63 - Port of the into fix the tech --- src/slic3r/GUI/GUI_Preview.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GUI_Preview.cpp b/src/slic3r/GUI/GUI_Preview.cpp index 4d84454eb..1e738aa7c 100644 --- a/src/slic3r/GUI/GUI_Preview.cpp +++ b/src/slic3r/GUI/GUI_Preview.cpp @@ -980,10 +980,9 @@ void Preview::load_print_as_fff(bool keep_z_range) (number_extruders > 1) ? GCodeViewer::EViewType::Tool : GCodeViewer::EViewType::FeatureType; if (choice != gcode_view_type) { m_canvas->set_gcode_view_preview_type(choice); - if (wxGetApp().is_gcode_viewer()) { + if (wxGetApp().is_gcode_viewer()) m_keep_current_preview_type = true; - refresh_print(); - } + refresh_print(); } #else const wxString choice = !gcodes.empty() ?