mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 01:45:54 +08:00
Suppress a tab selection when the application is started as a G-codeViewer
This commit is contained in:
parent
123a299a9b
commit
83ce1d600a
@ -2042,6 +2042,8 @@ void MainFrame::select_tab(Tab* tab)
|
|||||||
|
|
||||||
void MainFrame::select_tab(size_t tab/* = size_t(-1)*/)
|
void MainFrame::select_tab(size_t tab/* = size_t(-1)*/)
|
||||||
{
|
{
|
||||||
|
if (!wxGetApp().is_editor())
|
||||||
|
return;
|
||||||
bool tabpanel_was_hidden = false;
|
bool tabpanel_was_hidden = false;
|
||||||
|
|
||||||
// Controls on page are created on active page of active tab now.
|
// Controls on page are created on active page of active tab now.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user