From 06720edd93b51a84650e2d385a24043cc4fb932e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Oct 2015 21:53:50 +0300 Subject: Add strong typed bool enum mainconfig. --- src/gui/widgets/tabs/setup_other.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/tabs/setup_other.cpp') diff --git a/src/gui/widgets/tabs/setup_other.cpp b/src/gui/widgets/tabs/setup_other.cpp index daf26f668..4a1fc1302 100644 --- a/src/gui/widgets/tabs/setup_other.cpp +++ b/src/gui/widgets/tabs/setup_other.cpp @@ -241,11 +241,13 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : // TRANSLATORS: settings option new SetupItemTextField(_("Afk message"), "", - "afkMessage", this, "afkMessageEvent", false); + "afkMessage", this, "afkMessageEvent", + MainConfig_false); // TRANSLATORS: settings option new SetupItemCheckBox(_("Show job"), "", "showJob", - this, "showJobEvent", false); + this, "showJobEvent", + MainConfig_false); // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable attack filter"), "", @@ -297,12 +299,14 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable guild bot support and disable native " "guild support"), "", "enableGuildBot", this, - "enableGuildBotEvent", false); + "enableGuildBotEvent", + MainConfig_false); // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable manamarket bot support"), "", "enableManaMarketBot", this, - "enableManaMarketBotEvent", false); + "enableManaMarketBotEvent", + MainConfig_false); // TRANSLATORS: settings group @@ -364,7 +368,8 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable buggy servers protection " "(do not disable)"), "", "enableBuggyServers", this, - "enableBuggyServersEvent", false); + "enableBuggyServersEvent", + MainConfig_false); // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable debug log"), "", @@ -403,7 +408,9 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : #ifndef WIN32 // TRANSLATORS: settings option new SetupItemTextField(_("Screenshot directory"), "", - "screenshotDirectory3", this, "screenshotDirectory3Event", true, true); + "screenshotDirectory3", this, "screenshotDirectory3Event", + MainConfig_true, + true); #endif // TRANSLATORS: settings option -- cgit v1.2.3-70-g09d2