From 3a631e40db78f98ab82bb600d7cf9d7428bc2b02 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 1 May 2023 07:10:53 -0700 Subject: Declarative plugin management (#2180) * Declarative plugin management Allow declaring `plugin` entries in the hyprland configuration. Plugins will be loaded if an entry is added and unloaded if that entry is removed. * Replace pointers with copying in updateconfigPlugins * Include which plugin was declared twice in error --- src/hyprerror/HyprError.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/hyprerror/HyprError.cpp') diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp index ca0776ea..b72f0589 100644 --- a/src/hyprerror/HyprError.cpp +++ b/src/hyprerror/HyprError.cpp @@ -33,7 +33,6 @@ void CHyprError::queueCreate(std::string message, const CColor& color) { void CHyprError::createQueued() { if (m_bIsCreated) { - m_bQueuedDestroy = false; m_tTexture.destroyTexture(); } @@ -171,4 +170,6 @@ void CHyprError::draw() { void CHyprError::destroy() { if (m_bIsCreated) m_bQueuedDestroy = true; + else + m_szQueued = ""; } -- cgit v1.2.3