mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
external system update trigger (#546)
This commit is contained in:
committed by
GitHub
parent
9774991b56
commit
959766b265
@@ -263,4 +263,16 @@ Singleton {
|
||||
running: refCount > 0 && distributionSupported && (pkgManager || updChecker)
|
||||
onTriggered: checkForUpdates()
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "systemupdater"
|
||||
|
||||
function updatestatus(): string {
|
||||
if (root.isChecking) {
|
||||
return "ERROR: already checking"
|
||||
}
|
||||
root.checkForUpdates()
|
||||
return "SUCCESS: Now checking..."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
docs/IPC.md
15
docs/IPC.md
@@ -407,6 +407,21 @@ dms ipc call bar hide
|
||||
dms ipc call bar status
|
||||
```
|
||||
|
||||
## Target: `systemupdater`
|
||||
|
||||
System updater external check request.
|
||||
|
||||
### Functions
|
||||
|
||||
**`updatestatus`**
|
||||
- Trigger a system update check
|
||||
- Returns: Success confirmation
|
||||
|
||||
### Examples
|
||||
```bash
|
||||
dms ipc call systemupdater updatestatus
|
||||
```
|
||||
|
||||
## Modal Controls
|
||||
|
||||
These targets control various modal windows and overlays.
|
||||
|
||||
Reference in New Issue
Block a user