Suppress a tab selection when the application is started as a G-codeViewer

This commit is contained in:
YuSanka 2024-03-19 16:55:56 +01:00 committed by David Kocik
parent 123a299a9b
commit 83ce1d600a

View File

@ -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.