Skip to content

Commit

Permalink
core: make unload all do what it says
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Feb 27, 2024
1 parent dfd3d09 commit 79765e1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,6 @@ static Hyprlang::CParseResult handleUnloadAll(const char* C, const char* V) {
std::vector<std::string> 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);
}

Expand Down

0 comments on commit 79765e1

Please sign in to comment.