diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-26 15:16:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-26 15:16:36 +0100 |
| commit | 5ba33f846129f3e6c0505b19f94634b24505e828 (patch) | |
| tree | aaacabe678006040c342935481a86607c66607fd /src/plugins/PluginSystem.cpp | |
| parent | 329b2b356dd92ac07f4e2aa69cbce82ee9ba9d19 (diff) | |
config/lua: init lua config manager, use lua if available (#13817)
Adds a new lua config manager, which will automatically be used if there is a lua config present.
Diffstat (limited to 'src/plugins/PluginSystem.cpp')
| -rw-r--r-- | src/plugins/PluginSystem.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/PluginSystem.cpp b/src/plugins/PluginSystem.cpp index 18b6adde..b39131a5 100644 --- a/src/plugins/PluginSystem.cpp +++ b/src/plugins/PluginSystem.cpp @@ -2,7 +2,7 @@ #include <dlfcn.h> #include <ranges> -#include "../config/legacy/ConfigManager.hpp" +#include "../config/ConfigManager.hpp" #include "../debug/HyprCtl.hpp" #include "../managers/eventLoop/EventLoopManager.hpp" #include "../managers/permissions/DynamicPermissionManager.hpp" @@ -175,9 +175,8 @@ void CPluginSystem::unloadPlugin(const CPlugin* plugin, bool eject) { HyprlandAPI::unregisterHyprCtlCommand(plugin->m_handle, sp); } - // FIXME: this is wrong and if I forget to fix this by the time I add another config parser - // this will explode and I will be mad because I am a RETARD - Config::Legacy::mgr()->removePluginConfig(plugin->m_handle); + if (Config::mgr()) + Config::mgr()->onPluginUnload(plugin->m_handle); // save these two for dlclose and a log, // as erase_if will kill the pointer |
