mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-04 20:06:01 +01:00
config: don't overwrite errors in gradients
This commit is contained in:
parent
55ec8bd512
commit
cc38e7e18f
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ static Hyprlang::CParseResult configHandleGradientSet(const char* VALUE, void**
|
||||||
|
|
||||||
if (DATA->m_vColors.size() == 0) {
|
if (DATA->m_vColors.size() == 0) {
|
||||||
Debug::log(WARN, "Error parsing gradient {}", V);
|
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
|
DATA->m_vColors.push_back(0); // transparent
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue