Using alias rather than var for JsonAdapter

This commit is contained in:
quadbyte 2025-08-17 11:38:11 -04:00
parent 7791ee3c0d
commit 15a67ca5cc
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ Singleton {
property string defaultAvatar: Quickshell.env("HOME") + "/.face" property string defaultAvatar: Quickshell.env("HOME") + "/.face"
// Used to access via Settings.data.xxx.yyy // Used to access via Settings.data.xxx.yyy
property var data: adapter property alias data: adapter
// Flag to prevent unnecessary wallpaper calls during reloads // Flag to prevent unnecessary wallpaper calls during reloads
property bool isInitialLoad: true property bool isInitialLoad: true

View file

@ -11,8 +11,8 @@ Singleton {
property string githubDataFile: Quickshell.env("NOCTALIA_GITHUB_FILE") || (Settings.cacheDir + "github.json") property string githubDataFile: Quickshell.env("NOCTALIA_GITHUB_FILE") || (Settings.cacheDir + "github.json")
property int githubUpdateFrequency: 60 * 60 // 1 hour expressed in seconds 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 bool isFetchingData: false
property alias data: adapter // Used to access via GitHubService.data.xxx.yyy
// Public properties for easy access // Public properties for easy access
property string latestVersion: "Unknown" property string latestVersion: "Unknown"

View file

@ -11,8 +11,8 @@ Singleton {
property string locationFile: Quickshell.env("NOCTALIA_WEATHER_FILE") || (Settings.cacheDir + "location.json") property string locationFile: Quickshell.env("NOCTALIA_WEATHER_FILE") || (Settings.cacheDir + "location.json")
property int weatherUpdateFrequency: 30 * 60 // 30 minutes expressed in seconds 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 bool isFetchingWeather: false
property alias data: adapter // Used to access via LocationService.data.xxx
FileView { FileView {
path: locationFile path: locationFile