mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 03:49:51 +01:00
hyprpm: fix hyrpm sometimes returning 0 despite errors occuring (#8761)
* hyprpm: fix hyrpm sometimes returning 0 despite errors occuring * there u go
This commit is contained in:
parent
23e7d8f6a7
commit
7c43eed2c1
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,7 @@ int main(int argc, char** argv, char** envp) {
|
||||||
|
|
||||||
if (command.empty()) {
|
if (command.empty()) {
|
||||||
std::println(stderr, "{}", HELP);
|
std::println(stderr, "{}", HELP);
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_pPluginManager = std::make_unique<CPluginManager>();
|
g_pPluginManager = std::make_unique<CPluginManager>();
|
||||||
|
@ -165,6 +165,7 @@ int main(int argc, char** argv, char** envp) {
|
||||||
break;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
return 1;
|
||||||
} else if (notify && !notifyFail) {
|
} else if (notify && !notifyFail) {
|
||||||
g_pPluginManager->notify(ICON_OK, 0, 4000, "[hyprpm] Loaded plugins");
|
g_pPluginManager->notify(ICON_OK, 0, 4000, "[hyprpm] Loaded plugins");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue