aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-11-24 14:53:36 +0000
committerVaxry <[email protected]>2024-11-24 14:53:36 +0000
commitcc38e7e18fd762d5cdb34d06335223b7d7874106 (patch)
treed284a35cfdcc9e7a14e281c8c33feda7a2a12dfd
parent55ec8bd512605a014cc322d3419a9cfa72178340 (diff)
downloadHyprland-cc38e7e18fd762d5cdb34d06335223b7d7874106.tar.gz
Hyprland-cc38e7e18fd762d5cdb34d06335223b7d7874106.zip
config: don't overwrite errors in gradients
-rw-r--r--src/config/ConfigManager.cpp3
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
}