1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

bar ipc change from show to reveal

This commit is contained in:
bbedward
2025-09-04 15:53:54 -04:00
parent e64124cce3
commit 3c3cffd7b6
6 changed files with 17 additions and 23 deletions

View File

@@ -25,9 +25,9 @@ Image {
hashProcess.running = true
}
onCachePathChanged: {
if (!imageHash || !cachePath) {
if (!imageHash || !cachePath)
return
}
Paths.mkdir(Paths.imagecache)
source = cachePath
}
@@ -36,15 +36,15 @@ Image {
source = imagePath
return
}
if (source != imagePath || status !== Image.Ready || !imageHash || !cachePath) {
if (source != imagePath || status !== Image.Ready || !imageHash || !cachePath)
return
}
Paths.mkdir(Paths.imagecache)
const grabPath = cachePath
if (visible && width > 0 && height > 0 && Window.window && Window.window.visible) {
grabToImage(res => res.saveToFile(grabPath))
}
if (visible && width > 0 && height > 0 && Window.window && Window.window.visible)
grabToImage(res => {
return res.saveToFile(grabPath)
})
}
Process {