From 83ce1d600a57df307b3abc3ca94f00a11a4fb783 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 19 Mar 2024 16:55:56 +0100 Subject: [PATCH] Suppress a tab selection when the application is started as a G-codeViewer --- src/slic3r/GUI/MainFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 8a460fe440..389ff3dbb8 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -2042,6 +2042,8 @@ void MainFrame::select_tab(Tab* tab) void MainFrame::select_tab(size_t tab/* = size_t(-1)*/) { + if (!wxGetApp().is_editor()) + return; bool tabpanel_was_hidden = false; // Controls on page are created on active page of active tab now.