From 6e2ea18b9cb35270163b1111dc1c11ed86b7bb83 Mon Sep 17 00:00:00 2001 From: "Dylan \"smellyfis\" Thies" Date: Tue, 1 Jan 2019 16:08:46 -0500 Subject: [PATCH] fixing issue with disappearing tabs src/slic3r/GUI/Tab.cpp: When switch to previously created tabs they were not being restored The fix is better only used on Linux (lukasmatena) --- src/slic3r/GUI/Tab.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index e46ae6344..41318a854 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -2321,7 +2321,13 @@ void Tab::load_current_preset() if (tab->type() == Preset::TYPE_PRINTER) // Printer tab is shown every time continue; if (tab->supports_printer_technology(printer_technology)) + { wxGetApp().tab_panel()->InsertPage(wxGetApp().tab_panel()->FindPage(this), tab, tab->title()); + #ifdef __linux__ // the tabs apparently need to be explicitly shown on Linux (pull request #1563) + int page_id = wxGetApp().tab_panel()->FindPage(tab); + wxGetApp().tab_panel()->GetPage(page_id)->Show(true); + #endif // __linux__ + } else { int page_id = wxGetApp().tab_panel()->FindPage(tab); wxGetApp().tab_panel()->GetPage(page_id)->Show(false);