mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 06:19:00 +08:00
Fixed wrong page selection for Printer Setting after application run
This commit is contained in:
parent
6adb2e7aea
commit
4cd4d2c8b5
@ -91,7 +91,9 @@ enum ConfigOptionType {
|
|||||||
enum ConfigOptionMode {
|
enum ConfigOptionMode {
|
||||||
comSimple = 0,
|
comSimple = 0,
|
||||||
comAdvanced,
|
comAdvanced,
|
||||||
comExpert
|
comExpert,
|
||||||
|
|
||||||
|
comUndef
|
||||||
};
|
};
|
||||||
|
|
||||||
enum PrinterTechnology : unsigned char
|
enum PrinterTechnology : unsigned char
|
||||||
|
@ -729,10 +729,15 @@ void Tab::update_mode()
|
|||||||
m_mode_sizer->SetMode(m_mode);
|
m_mode_sizer->SetMode(m_mode);
|
||||||
|
|
||||||
update_visibility();
|
update_visibility();
|
||||||
|
|
||||||
|
update_changed_tree_ui();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Tab::update_visibility()
|
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
|
Freeze(); // There is needed Freeze/Thaw to avoid a flashing after Show/Layout
|
||||||
|
|
||||||
for (auto page : m_pages)
|
for (auto page : m_pages)
|
||||||
@ -741,8 +746,6 @@ void Tab::update_visibility()
|
|||||||
|
|
||||||
Layout();
|
Layout();
|
||||||
Thaw();
|
Thaw();
|
||||||
|
|
||||||
update_changed_tree_ui();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Tab::msw_rescale()
|
void Tab::msw_rescale()
|
||||||
|
@ -218,7 +218,7 @@ protected:
|
|||||||
int m_em_unit;
|
int m_em_unit;
|
||||||
// To avoid actions with no-completed Tab
|
// To avoid actions with no-completed Tab
|
||||||
bool m_complited { false };
|
bool m_complited { false };
|
||||||
ConfigOptionMode m_mode = comSimple;
|
ConfigOptionMode m_mode = comUndef;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PresetBundle* m_preset_bundle;
|
PresetBundle* m_preset_bundle;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user