mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 04:23:49 -07:00
hyprctl: fix plugin list on no plugins (#5357)
This commit is contained in:
@@ -1449,7 +1449,10 @@ std::string dispatchPlugin(eHyprCtlOutputFormat format, std::string request) {
|
|||||||
|
|
||||||
g_pPluginSystem->unloadPlugin(PLUGIN);
|
g_pPluginSystem->unloadPlugin(PLUGIN);
|
||||||
} else if (OPERATION == "list") {
|
} else if (OPERATION == "list") {
|
||||||
const auto PLUGINS = g_pPluginSystem->getAllPlugins();
|
const auto PLUGINS = g_pPluginSystem->getAllPlugins();
|
||||||
|
|
||||||
|
if (PLUGINS.size() == 0)
|
||||||
|
return "no plugins loaded";
|
||||||
|
|
||||||
std::string list = "";
|
std::string list = "";
|
||||||
for (auto& p : PLUGINS) {
|
for (auto& p : PLUGINS) {
|
||||||
|
Reference in New Issue
Block a user