Files
noctalia-shell/Services/UpdateService.qml
T
2025-09-18 23:42:34 -04:00

31 lines
641 B
QML

pragma Singleton
import QtQuick
import Quickshell
import qs.Commons
Singleton {
id: root
// Public properties
property string baseVersion: "2.12.1"
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.log("UpdateService", "Checking for updates...")
}
function init() {
// Ensure the singleton is created
Logger.log("UpdateService", "Version:", root.currentVersion)
}
}