diff options
author | Vaxry <[email protected]> | 2024-11-24 14:53:36 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-11-24 14:53:36 +0000 |
commit | cc38e7e18fd762d5cdb34d06335223b7d7874106 (patch) | |
tree | d284a35cfdcc9e7a14e281c8c33feda7a2a12dfd | |
parent | 55ec8bd512605a014cc322d3419a9cfa72178340 (diff) | |
download | Hyprland-cc38e7e18fd762d5cdb34d06335223b7d7874106.tar.gz Hyprland-cc38e7e18fd762d5cdb34d06335223b7d7874106.zip |
config: don't overwrite errors in gradients
-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 ba0fdd9d..c0f212cf 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -79,7 +79,8 @@ static Hyprlang::CParseResult configHandleGradientSet(const char* VALUE, void** if (DATA->m_vColors.size() == 0) { Debug::log(WARN, "Error parsing gradient {}", V); - parseError = "Error parsing gradient " + V + ": No colors?"; + if (parseError.empty()) + parseError = "Error parsing gradient " + V + ": No colors?"; DATA->m_vColors.push_back(0); // transparent } |