config: don't emit reloaded event before eventManager is created

This commit is contained in:
Vaxry 2023-12-29 00:17:58 +01:00
parent f771c10d1a
commit ddf8e01c1e

View file

@ -1812,6 +1812,7 @@ void CConfigManager::loadConfigLoadVars() {
handlePluginLoads(); handlePluginLoads();
EMIT_HOOK_EVENT("configReloaded", nullptr); EMIT_HOOK_EVENT("configReloaded", nullptr);
if (g_pEventManager)
g_pEventManager->postEvent(SHyprIPCEvent{"configreloaded", ""}); g_pEventManager->postEvent(SHyprIPCEvent{"configreloaded", ""});
} }