mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-12-22 04:19:47 +01:00
oops
This commit is contained in:
parent
3de17d1636
commit
59956ce32a
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ void CHyprpaper::removeOldHyprpaperImages() {
|
|||
// unlink it
|
||||
|
||||
memoryFreed += entry.file_size();
|
||||
std::filesystem::remove(FILENAME);
|
||||
if (!std::filesystem::remove(entry.path()))
|
||||
Debug::log(LOG, "Couldn't remove %s", entry.path().string().c_str());
|
||||
cleaned++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue