INI: Create a new INI setting for toggling the debugger UI

Qt introduced a checkbox to toggle the debugger UI, this makes it work into a setting stored in the INI, it also makes the -d argument only in effect when enabled, in such case, it will override the INI by overriding it.
This commit is contained in:
aldelaro5 2018-05-04 04:02:05 -04:00
parent a5e410b7c9
commit fee92cd4fc
No known key found for this signature in database
GPG key ID: 054DD3E6FF48DB71
2 changed files with 4 additions and 1 deletions

View file

@ -105,7 +105,6 @@ int main(int argc, char* argv[])
UICommon::CreateDirectories();
UICommon::Init();
Resources::Init();
Settings::Instance().SetDebugModeEnabled(options.is_set("debugger"));
Settings::Instance().SetBatchModeEnabled(options.is_set("batch"));
// Hook up alerts from core
@ -148,6 +147,8 @@ int main(int argc, char* argv[])
DolphinAnalytics::Instance()->ReportDolphinStart("qt");
MainWindow win{std::move(boot)};
if (options.is_set("debugger"))
Settings::Instance().SetDebugModeEnabled(true);
win.show();
#if defined(USE_ANALYTICS) && USE_ANALYTICS