mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-18 16:10:25 -07:00
hyprpm: fix crash with enable without an arg
This commit is contained in:
parent
bb5cd5b2dd
commit
c19f383685
@ -142,7 +142,7 @@ int main(int argc, char** argv, char** envp) {
|
||||
} else if (notify)
|
||||
g_pPluginManager->notify(ICON_ERROR, 0, 10000, "[hyprpm] Couldn't update headers");
|
||||
} else if (command[0] == "enable") {
|
||||
if (ARGS.size() < 2) {
|
||||
if (command.size() < 2) {
|
||||
std::println(stderr, "{}", failureString("Not enough args for enable."));
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user