From 79765e1bdf51f67ada5a072c8fa0f5ab88bd782b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 27 Feb 2024 21:44:07 +0000 Subject: [PATCH] core: make unload all do what it says --- src/config/ConfigManager.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index cdf3672..d43e271 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -89,18 +89,6 @@ static Hyprlang::CParseResult handleUnloadAll(const char* C, const char* V) { std::vector toUnload; for (auto& [name, target] : g_pHyprpaper->m_mWallpaperTargets) { - - bool exists = false; - for (auto& [mon, target2] : g_pHyprpaper->m_mMonitorActiveWallpaperTargets) { - if (&target == target2) { - exists = true; - break; - } - } - - if (exists) - continue; - toUnload.emplace_back(name); }