mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-12-22 04:19:47 +01:00
core: make unload all do what it says
This commit is contained in:
parent
dfd3d090dc
commit
79765e1bdf
1 changed files with 0 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue