Fixed wrong page selection for Printer Setting after application run

This commit is contained in:
YuSanka 2019-08-13 17:09:42 +02:00
parent 6adb2e7aea
commit 4cd4d2c8b5
3 changed files with 9 additions and 4 deletions

View file

@ -729,10 +729,15 @@ void Tab::update_mode()
m_mode_sizer->SetMode(m_mode);
update_visibility();
update_changed_tree_ui();
}
void Tab::update_visibility()
{
if (m_mode == comUndef) // if mode isn't set for this moment
m_mode = wxGetApp().get_mode();
Freeze(); // There is needed Freeze/Thaw to avoid a flashing after Show/Layout
for (auto page : m_pages)
@ -741,8 +746,6 @@ void Tab::update_visibility()
Layout();
Thaw();
update_changed_tree_ui();
}
void Tab::msw_rescale()