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,7 +1812,8 @@ void CConfigManager::loadConfigLoadVars() {
handlePluginLoads(); handlePluginLoads();
EMIT_HOOK_EVENT("configReloaded", nullptr); EMIT_HOOK_EVENT("configReloaded", nullptr);
g_pEventManager->postEvent(SHyprIPCEvent{"configreloaded", ""}); if (g_pEventManager)
g_pEventManager->postEvent(SHyprIPCEvent{"configreloaded", ""});
} }
void CConfigManager::tick() { void CConfigManager::tick() {