1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 14:05:38 -05:00

ipc wallpaper handler, fix high CPU usage

This commit is contained in:
bbedward
2025-07-14 14:36:08 -04:00
parent 58d711b3e9
commit 31f1360d1b
17 changed files with 186 additions and 90 deletions

View File

@@ -107,7 +107,7 @@ PanelWindow {
radius: parent.radius
SequentialAnimation on opacity {
running: true
running: root.calendarVisible
loops: Animation.Infinite
NumberAnimation {
to: 0.08

View File

@@ -36,10 +36,10 @@ Rectangle {
return activePlayer && activePlayer.length > 0 ? currentPosition / activePlayer.length : 0
}
// Updates progress bar every second
// Updates progress bar every 2 seconds when playing
Timer {
id: positionTimer
interval: 1000
interval: 2000
running: activePlayer && activePlayer.playbackState === MprisPlaybackState.Playing && activePlayer.length > 0 && !progressMouseArea.isSeeking
repeat: true
onTriggered: {