diff options
| author | memchr <118117622+memchr@users.noreply.github.com> | 2023-08-20 16:17:49 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-20 18:17:49 +0200 |
| commit | 09cc96c0d57512e9db801a3888a0d9c773c79dc2 (patch) | |
| tree | 6c5c547438898ae65afd69be2476072bd63a1b74 /src/config/ConfigManager.cpp | |
| parent | b79dfcceb45669cac3cfae0be0b2146c725d7a7a (diff) | |
feat(debug): add debug:suppress_errors to suppress errors. (#3032)
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index db187208..fffa61a0 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -125,6 +125,7 @@ void CConfigManager::setDefaultVars() { configValues["debug:enable_stdout_logs"].intValue = 0; configValues["debug:damage_tracking"].intValue = DAMAGE_TRACKING_FULL; configValues["debug:manual_crash"].intValue = 0; + configValues["debug:suppress_errors"].intValue = 0; configValues["decoration:rounding"].intValue = 0; configValues["decoration:blur:enabled"].intValue = 1; @@ -1566,7 +1567,7 @@ void CConfigManager::loadConfigLoadVars() { g_pHyprOpenGL->m_bReloadScreenShader = true; // parseError will be displayed next frame - if (parseError != "") + if (parseError != "" && !configValues["debug:suppress_errors"].intValue) g_pHyprError->queueCreate(parseError + "\nHyprland may not work correctly.", CColor(1.0, 50.0 / 255.0, 50.0 / 255.0, 1.0)); else if (configValues["autogenerated"].intValue == 1) g_pHyprError->queueCreate("Warning: You're using an autogenerated config! (config file: " + mainConfigPath + " )\nSUPER+Q -> kitty\nSUPER+M -> exit Hyprland", |
