diff --git a/Commons/Settings.qml b/Commons/Settings.qml index b4048a7..009cdc9 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -24,7 +24,7 @@ Singleton { property string defaultAvatar: Quickshell.env("HOME") + "/.face" // Used to access via Settings.data.xxx.yyy - property var data: adapter + property alias data: adapter // Flag to prevent unnecessary wallpaper calls during reloads property bool isInitialLoad: true diff --git a/Services/GitHubService.qml b/Services/GitHubService.qml index 522ca80..98bf6e4 100644 --- a/Services/GitHubService.qml +++ b/Services/GitHubService.qml @@ -11,8 +11,8 @@ Singleton { property string githubDataFile: Quickshell.env("NOCTALIA_GITHUB_FILE") || (Settings.cacheDir + "github.json") property int githubUpdateFrequency: 60 * 60 // 1 hour expressed in seconds - property var data: adapter // Used to access via GitHubService.data.xxx.yyy property bool isFetchingData: false + property alias data: adapter // Used to access via GitHubService.data.xxx.yyy // Public properties for easy access property string latestVersion: "Unknown" diff --git a/Services/LocationService.qml b/Services/LocationService.qml index 3a4744e..3eb96ed 100644 --- a/Services/LocationService.qml +++ b/Services/LocationService.qml @@ -11,8 +11,8 @@ Singleton { property string locationFile: Quickshell.env("NOCTALIA_WEATHER_FILE") || (Settings.cacheDir + "location.json") property int weatherUpdateFrequency: 30 * 60 // 30 minutes expressed in seconds - property var data: adapter // Used to access via LocationService.data.xxx property bool isFetchingWeather: false + property alias data: adapter // Used to access via LocationService.data.xxx FileView { path: locationFile