Some reverts for commit 4cd4d2c8b5
This commit is contained in:
parent
fbda7be89d
commit
2d1c554758
@ -91,9 +91,7 @@ enum ConfigOptionType {
|
||||
enum ConfigOptionMode {
|
||||
comSimple = 0,
|
||||
comAdvanced,
|
||||
comExpert,
|
||||
|
||||
comUndef
|
||||
comExpert
|
||||
};
|
||||
|
||||
enum PrinterTechnology : unsigned char
|
||||
|
@ -735,9 +735,6 @@ void Tab::update_mode()
|
||||
|
||||
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)
|
||||
|
@ -218,7 +218,7 @@ protected:
|
||||
int m_em_unit;
|
||||
// To avoid actions with no-completed Tab
|
||||
bool m_complited { false };
|
||||
ConfigOptionMode m_mode = comUndef;
|
||||
ConfigOptionMode m_mode = comExpert; // to correct first Tab update_visibility() set mode to Expert
|
||||
|
||||
public:
|
||||
PresetBundle* m_preset_bundle;
|
||||
|
Loading…
Reference in New Issue
Block a user