Some reverts for commit 4cd4d2c8b5

This commit is contained in:
YuSanka 2019-08-14 17:05:26 +02:00
parent fbda7be89d
commit 2d1c554758
3 changed files with 2 additions and 7 deletions

View File

@ -91,9 +91,7 @@ enum ConfigOptionType {
enum ConfigOptionMode {
comSimple = 0,
comAdvanced,
comExpert,
comUndef
comExpert
};
enum PrinterTechnology : unsigned char

View File

@ -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)

View File

@ -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;