mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-10 01:29:09 +08:00
Fixed a can_change_view() function in respect to the new settings layouts
This commit is contained in:
parent
74e8e55fbc
commit
f741872361
@ -476,6 +476,11 @@ bool MainFrame::can_slice() 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();
|
||||
return page_id != wxNOT_FOUND && dynamic_cast<const Slic3r::GUI::Plater*>(m_tabpanel->GetPage((size_t)page_id)) != nullptr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user