mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-03 20:32:07 -04:00
ipc wallpaper handler, fix high CPU usage
This commit is contained in:
@@ -47,14 +47,12 @@ PanelWindow {
|
||||
onTriggered: updateFilteredModel()
|
||||
}
|
||||
|
||||
// Periodic rescan while open
|
||||
Timer {
|
||||
id: periodicRescanTimer
|
||||
interval: 15000 // 15 seconds
|
||||
interval: 60000
|
||||
repeat: true
|
||||
running: launcher.isVisible
|
||||
onTriggered: {
|
||||
console.log("AppLauncher: Periodic rescan triggered")
|
||||
if (DesktopEntries.rescan) {
|
||||
DesktopEntries.rescan()
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ PanelWindow {
|
||||
radius: parent.radius
|
||||
|
||||
SequentialAnimation on opacity {
|
||||
running: true
|
||||
running: root.calendarVisible
|
||||
loops: Animation.Infinite
|
||||
NumberAnimation {
|
||||
to: 0.08
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -17,6 +17,12 @@ PanelWindow {
|
||||
|
||||
visible: isVisible
|
||||
|
||||
// Monitor process dropdown visibility to enable/disable process monitoring
|
||||
onIsVisibleChanged: {
|
||||
console.log("Process dropdown", isVisible ? "opened" : "closed")
|
||||
ProcessMonitorService.enableMonitoring(isVisible)
|
||||
}
|
||||
|
||||
implicitWidth: 600
|
||||
implicitHeight: 600
|
||||
|
||||
|
||||
@@ -32,10 +32,9 @@ PanelWindow {
|
||||
onTriggered: updateFilteredApps()
|
||||
}
|
||||
|
||||
// Periodic rescan while open
|
||||
Timer {
|
||||
id: periodicRescanTimer
|
||||
interval: 15000 // 15 seconds
|
||||
interval: 60000
|
||||
repeat: true
|
||||
running: spotlightOpen
|
||||
onTriggered: {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import "../../Common"
|
||||
|
||||
Rectangle {
|
||||
@@ -51,13 +52,14 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
interval: 1000
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: {
|
||||
root.currentDate = new Date()
|
||||
}
|
||||
SystemClock {
|
||||
id: systemClock
|
||||
precision: SystemClock.Seconds
|
||||
onDateChanged: root.currentDate = systemClock.date
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
root.currentDate = systemClock.date
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
||||
@@ -121,7 +121,7 @@ PanelWindow {
|
||||
radius: parent.radius
|
||||
|
||||
SequentialAnimation on opacity {
|
||||
running: true
|
||||
running: false
|
||||
loops: Animation.Infinite
|
||||
NumberAnimation {
|
||||
to: 0.08
|
||||
|
||||
Reference in New Issue
Block a user