Some reverts for commit 4cd4d2c8b5
This commit is contained in:
parent
fbda7be89d
commit
2d1c554758
3 changed files with 2 additions and 7 deletions
|
@ -91,9 +91,7 @@ enum ConfigOptionType {
|
||||||
enum ConfigOptionMode {
|
enum ConfigOptionMode {
|
||||||
comSimple = 0,
|
comSimple = 0,
|
||||||
comAdvanced,
|
comAdvanced,
|
||||||
comExpert,
|
comExpert
|
||||||
|
|
||||||
comUndef
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum PrinterTechnology : unsigned char
|
enum PrinterTechnology : unsigned char
|
||||||
|
|
|
@ -735,9 +735,6 @@ void Tab::update_mode()
|
||||||
|
|
||||||
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)
|
||||||
|
|
|
@ -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 = comUndef;
|
ConfigOptionMode m_mode = comExpert; // to correct first Tab update_visibility() set mode to Expert
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PresetBundle* m_preset_bundle;
|
PresetBundle* m_preset_bundle;
|
||||||
|
|
Loading…
Reference in a new issue