hyprpm: fix crash with enable without an arg
This commit is contained in:
parent
bb5cd5b2dd
commit
c19f383685
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ int main(int argc, char** argv, char** envp) {
|
||||||
} else if (notify)
|
} else if (notify)
|
||||||
g_pPluginManager->notify(ICON_ERROR, 0, 10000, "[hyprpm] Couldn't update headers");
|
g_pPluginManager->notify(ICON_ERROR, 0, 10000, "[hyprpm] Couldn't update headers");
|
||||||
} else if (command[0] == "enable") {
|
} else if (command[0] == "enable") {
|
||||||
if (ARGS.size() < 2) {
|
if (command.size() < 2) {
|
||||||
std::println(stderr, "{}", failureString("Not enough args for enable."));
|
std::println(stderr, "{}", failureString("Not enough args for enable."));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue