mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-12-22 13:29:48 +01:00
label: do not error when using cmd[] for a static label cmd (#396)
This commit is contained in:
parent
5b19c6307a
commit
9737bf6484
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ IWidget::SFormatResult IWidget::formatString(std::string in) {
|
||||||
|
|
||||||
if (in.starts_with("cmd[") && in.contains("]")) {
|
if (in.starts_with("cmd[") && in.contains("]")) {
|
||||||
// this is a command
|
// this is a command
|
||||||
CVarList vars(in.substr(4, in.find_first_of(']') - 4));
|
CVarList vars(in.substr(4, in.find_first_of(']') - 4), 0, ',', true);
|
||||||
|
|
||||||
for (const auto& v : vars) {
|
for (const auto& v : vars) {
|
||||||
if (v.starts_with("update:")) {
|
if (v.starts_with("update:")) {
|
||||||
|
|
Loading…
Reference in a new issue