mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 20:43:48 -07:00
hyprctl: fix plugin list on no plugins (#5357)
This commit is contained in:
@@ -1451,6 +1451,9 @@ std::string dispatchPlugin(eHyprCtlOutputFormat format, std::string request) {
|
||||
} else if (OPERATION == "list") {
|
||||
const auto PLUGINS = g_pPluginSystem->getAllPlugins();
|
||||
|
||||
if (PLUGINS.size() == 0)
|
||||
return "no plugins loaded";
|
||||
|
||||
std::string list = "";
|
||||
for (auto& p : PLUGINS) {
|
||||
list += std::format("\nPlugin {} by {}:\n\tHandle: {:x}\n\tVersion: {}\n\tDescription: {}\n", p->name, p->author, (uintptr_t)p->m_pHandle, p->version, p->description);
|
||||
|
Reference in New Issue
Block a user