mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
systemupdate: use ref system to prevent executions
This commit is contained in:
@@ -20,6 +20,10 @@ Rectangle {
|
|||||||
|
|
||||||
signal clicked()
|
signal clicked()
|
||||||
|
|
||||||
|
Ref {
|
||||||
|
service: SystemUpdateService
|
||||||
|
}
|
||||||
|
|
||||||
width: isVertical ? widgetThickness : (updaterIcon.width + horizontalPadding * 2)
|
width: isVertical ? widgetThickness : (updaterIcon.width + horizontalPadding * 2)
|
||||||
height: isVertical ? widgetThickness : widgetThickness
|
height: isVertical ? widgetThickness : widgetThickness
|
||||||
radius: SettingsData.dankBarNoBackground ? 0 : Theme.cornerRadius
|
radius: SettingsData.dankBarNoBackground ? 0 : Theme.cornerRadius
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ DankPopout {
|
|||||||
triggerScreen = screen;
|
triggerScreen = screen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Ref {
|
||||||
|
service: SystemUpdateService
|
||||||
|
}
|
||||||
|
|
||||||
popupWidth: 400
|
popupWidth: 400
|
||||||
popupHeight: 500
|
popupHeight: 500
|
||||||
triggerX: Screen.width - 600 - Theme.spacingL
|
triggerX: Screen.width - 600 - Theme.spacingL
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import qs.Common
|
|||||||
Singleton {
|
Singleton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
property int refCount: 0
|
||||||
property var availableUpdates: []
|
property var availableUpdates: []
|
||||||
property bool isChecking: false
|
property bool isChecking: false
|
||||||
property bool hasError: false
|
property bool hasError: false
|
||||||
@@ -256,7 +257,7 @@ Singleton {
|
|||||||
Timer {
|
Timer {
|
||||||
interval: 30 * 60 * 1000
|
interval: 30 * 60 * 1000
|
||||||
repeat: true
|
repeat: true
|
||||||
running: distributionSupported && (pkgManager || updChecker)
|
running: refCount > 0 && distributionSupported && (pkgManager || updChecker)
|
||||||
onTriggered: checkForUpdates()
|
onTriggered: checkForUpdates()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user