mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
Fixed a can_change_view() function in respect to the new settings layouts
This commit is contained in:
parent
74e8e55fbc
commit
f741872361
1 changed files with 5 additions and 0 deletions
|
@ -476,6 +476,11 @@ bool MainFrame::can_slice() const
|
||||||
|
|
||||||
bool MainFrame::can_change_view() const
|
bool MainFrame::can_change_view() const
|
||||||
{
|
{
|
||||||
|
if (m_layout == slNew)
|
||||||
|
return m_plater->IsShown();
|
||||||
|
if (m_layout == slDlg)
|
||||||
|
return true;
|
||||||
|
// slOld layout mode
|
||||||
int page_id = m_tabpanel->GetSelection();
|
int page_id = m_tabpanel->GetSelection();
|
||||||
return page_id != wxNOT_FOUND && dynamic_cast<const Slic3r::GUI::Plater*>(m_tabpanel->GetPage((size_t)page_id)) != nullptr;
|
return page_id != wxNOT_FOUND && dynamic_cast<const Slic3r::GUI::Plater*>(m_tabpanel->GetPage((size_t)page_id)) != nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue