mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 13:09:02 +08:00
Follow-up 26d52595 - Fixed a crash after switching from "Settings in separate dialog" mode to "Old" mode,
when "Connect" tab is selected (SPE-2314)
This commit is contained in:
parent
3e1baf0a61
commit
e95cc5d09c
@ -404,17 +404,11 @@ void MainFrame::update_layout()
|
||||
{
|
||||
m_plater->Reparent(m_tabpanel);
|
||||
m_plater->Layout();
|
||||
// m_tabpanel->InsertNewPage(0, m_plater, _L("Plater"), std::string("plater"), true);
|
||||
|
||||
m_main_sizer->Add(m_tabpanel, 1, wxEXPAND | wxTOP, 1);
|
||||
m_plater->Show();
|
||||
m_tabpanel->ShowFull();
|
||||
m_tmp_top_bar->Hide();
|
||||
|
||||
// update Tabs
|
||||
if (old_layout == ESettingsLayout::Dlg)
|
||||
if (int sel = m_tabpanel->GetSelection(); sel != wxNOT_FOUND)
|
||||
m_tabpanel->SetSelection(sel+1);// call SetSelection to correct layout after switching from Dlg to Old mode
|
||||
break;
|
||||
}
|
||||
case ESettingsLayout::Dlg:
|
||||
|
Loading…
x
Reference in New Issue
Block a user