Fix -debug argument

processArguments is called before ComputeDebugMode gets called, Logs::DebugEnabled gets overriden that way.
Fix that by setting gDebugMode variable and checking it in ComputeDebugMode.
This commit is contained in:
Ilya Fedin
2020-09-19 23:17:41 +04:00
committed by John Preston
parent 0cd68f866d
commit f128665f6b
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -87,6 +87,7 @@ DeclareSetting(bool, WriteProtected);
DeclareSetting(int32, LastUpdateCheck);
DeclareSetting(bool, NoStartUpdate);
DeclareSetting(bool, StartToSettings);
DeclareSetting(bool, DebugMode);
DeclareReadSetting(bool, ManyInstance);
DeclareSetting(QByteArray, LocalSalt);