mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Using alias rather than var for JsonAdapter
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user