booru: prevent race condition in cache folder cleaning

This commit is contained in:
end-4 2025-05-09 01:08:51 +02:00
parent b4e3221711
commit 2221b4d32c

View file

@ -37,8 +37,7 @@ Item {
}
Component.onCompleted: {
Hyprland.dispatch(`exec rm -rf ${previewDownloadPath}`)
Hyprland.dispatch(`exec mkdir -p ${previewDownloadPath}`)
Hyprland.dispatch(`exec rm -rf ${previewDownloadPath} && mkdir -p ${previewDownloadPath}`)
}
property var allCommands: [