mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-05 12:27:59 +02:00
core: fix variable substitution for LAYOUT (#778)
This commit is contained in:
parent
f7f0c9c6b0
commit
da1d076d84
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ static void replaceAllLayout(std::string& str) {
|
|||
const CVarList LANGS(REPL);
|
||||
if (LAYOUTIDX >= LANGS.size()) {
|
||||
Debug::log(ERR, "Layout index {} out of bounds. Max is {}.", LAYOUTIDX, LANGS.size() - 1);
|
||||
continue;
|
||||
return;
|
||||
}
|
||||
|
||||
const std::string LANG = LANGS[LAYOUTIDX].empty() ? layoutName : LANGS[LAYOUTIDX] == "!" ? "" : LANGS[LAYOUTIDX];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue