mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
31 lines
637 B
QML
31 lines
637 B
QML
pragma Singleton
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
import qs.Commons
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
// Public properties
|
|
property string baseVersion: "2.18.0"
|
|
property bool isDevelopment: true
|
|
|
|
property string currentVersion: `v${!isDevelopment ? baseVersion : baseVersion + "-dev"}`
|
|
|
|
// Internal helpers
|
|
function getVersion() {
|
|
return root.currentVersion
|
|
}
|
|
|
|
function checkForUpdates() {
|
|
// TODO: Implement update checking logic
|
|
Logger.i("UpdateService", "Checking for updates...")
|
|
}
|
|
|
|
function init() {
|
|
// Ensure the singleton is created
|
|
Logger.i("UpdateService", "Version:", root.currentVersion)
|
|
}
|
|
}
|