SettingsPanel: added keyboard navigation BluetoothPanel: UI enhancements WiFiPanel: UI enhancements NotificationPanel: UI enhancements ColorPicker: UI enhancements Toast: handle switching between toasts much better Notification: add DND option Notification: add actions LauncherTab: add app2unit toggle Spacer: added spacer widget with configurable width ActiveWindow: fix hyprland icon display PowerPanel: add keybind controls NetworkService: make it way more reliable More QoL fixes & changes
30 lines
641 B
QML
30 lines
641 B
QML
pragma Singleton
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
import qs.Commons
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
// Public properties
|
|
property string baseVersion: "2.6.0"
|
|
property bool isDevelopment: false
|
|
|
|
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)
|
|
}
|
|
}
|