disable windows debug feature

This commit is contained in:
Dante Ruiz 2019-10-17 11:35:10 -07:00
parent 1a2080d1f1
commit 3debfb95b0

View file

@ -32,6 +32,7 @@
#endif #endif
//#define BREAK_ON_ERROR //#define BREAK_ON_ERROR
//#define DEBUG_UI
const QString configHomeLocationKey { "homeLocation" }; const QString configHomeLocationKey { "homeLocation" };
const QString configLastLoginKey { "lastLogin" }; const QString configLastLoginKey { "lastLogin" };
@ -47,6 +48,7 @@ Q_INVOKABLE void LauncherState::openURLInBrowser(QString url) {
} }
void LauncherState::toggleDebugState() { void LauncherState::toggleDebugState() {
#ifdef DEBUG_UI
_isDebuggingScreens = !_isDebuggingScreens; _isDebuggingScreens = !_isDebuggingScreens;
UIState updatedUIState = getUIState(); UIState updatedUIState = getUIState();
@ -55,8 +57,10 @@ void LauncherState::toggleDebugState() {
emit updateSourceUrl(PathUtils::resourcePath(getCurrentUISource())); emit updateSourceUrl(PathUtils::resourcePath(getCurrentUISource()));
_uiState = getUIState(); _uiState = getUIState();
} }
#endif
} }
void LauncherState::gotoNextDebugScreen() { void LauncherState::gotoNextDebugScreen() {
#ifdef DEBUG_UI
if (_currentDebugScreen < (UIState::UI_STATE_NUM - 1)) { if (_currentDebugScreen < (UIState::UI_STATE_NUM - 1)) {
_currentDebugScreen = (UIState)(_currentDebugScreen + 1); _currentDebugScreen = (UIState)(_currentDebugScreen + 1);
//UIState updatedUIState = getUIState(); //UIState updatedUIState = getUIState();
@ -64,14 +68,17 @@ void LauncherState::gotoNextDebugScreen() {
emit updateSourceUrl(PathUtils::resourcePath(getCurrentUISource())); emit updateSourceUrl(PathUtils::resourcePath(getCurrentUISource()));
_uiState = getUIState(); _uiState = getUIState();
} }
#endif
} }
void LauncherState::gotoPreviousDebugScreen() { void LauncherState::gotoPreviousDebugScreen() {
#ifdef DEBUG_UI
if (_currentDebugScreen > 0) { if (_currentDebugScreen > 0) {
_currentDebugScreen = (UIState)(_currentDebugScreen - 1); _currentDebugScreen = (UIState)(_currentDebugScreen - 1);
emit uiStateChanged(); emit uiStateChanged();
emit updateSourceUrl(PathUtils::resourcePath(getCurrentUISource())); emit updateSourceUrl(PathUtils::resourcePath(getCurrentUISource()));
_uiState = getUIState(); _uiState = getUIState();
} }
#endif
} }
bool LauncherState::shouldDownloadContentCache() const { bool LauncherState::shouldDownloadContentCache() const {