mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 22:05:55 +08:00
fix gcodeviewer supermerill/SuperSlicer#1187
This commit is contained in:
parent
95535e68f6
commit
a560103ce2
@ -353,8 +353,8 @@ void MainFrame::update_layout()
|
||||
#endif //__WXMSW__
|
||||
|
||||
m_layout = layout;
|
||||
|
||||
m_layerpreview_menu_item->Enable(m_layout == ESettingsLayout::Tabs || m_layout == ESettingsLayout::Old);
|
||||
if (m_plater && m_layerpreview_menu_item)
|
||||
m_layerpreview_menu_item->Enable(m_layout == ESettingsLayout::Tabs || m_layout == ESettingsLayout::Old);
|
||||
|
||||
// From the very beginning the Print settings should be selected
|
||||
m_last_selected_setting_tab = 0;
|
||||
|
@ -118,7 +118,7 @@ class MainFrame : public DPIFrame
|
||||
|
||||
// vector of a MenuBar items changeable in respect to printer technology
|
||||
std::vector<wxMenuItem*> m_changeable_menu_items;
|
||||
wxMenuItem* m_layerpreview_menu_item;
|
||||
wxMenuItem* m_layerpreview_menu_item = nullptr;
|
||||
|
||||
wxFileHistory m_recent_projects;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user