summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 903b7d7f..f61f5544 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -1449,7 +1449,10 @@ std::string dispatchPlugin(eHyprCtlOutputFormat format, std::string request) {
g_pPluginSystem->unloadPlugin(PLUGIN);
} 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 = "";
for (auto& p : PLUGINS) {