qmlformat + fix build

This commit is contained in:
quadbyte 2025-08-10 11:59:54 -04:00
parent 2ed3488453
commit 61abcddeeb
9 changed files with 140 additions and 130 deletions

View file

@ -15,7 +15,7 @@ Singleton {
property string colorsFile: Quickshell.env("NOCTALIA_COLORS_FILE")
|| (settingsDir + "colors.json")
property var data: settingAdapter
// Needed to only have one NPanel loaded at a time.
property var openPanel: null
@ -32,7 +32,6 @@ Singleton {
// Qt.callLater(function () {
// WallpaperManager.setCurrentWallpaper(settings.currentWallpaper, true);
// })
id: settingFileView
path: settingsFile

View file

@ -9,9 +9,9 @@ Singleton {
property var date: new Date()
property string time: Settings.data.location.use12HourClock ? Qt.formatDateTime(
date,
"h:mm AP") : Qt.formatDateTime(
date, "HH:mm")
date,
"h:mm AP") : Qt.formatDateTime(
date, "HH:mm")
property string dateString: {
let now = date
let dayName = now.toLocaleDateString(Qt.locale(), "ddd")

View file

@ -69,8 +69,7 @@ Singleton {
if (Settings.data.wallpaper.isRandom && !randomWallpaperTimer.running) {
randomWallpaperTimer.start()
setRandomWallpaper()
} else if (!Settings.data.randomWallpaper
&& randomWallpaperTimer.running) {
} else if (!Settings.data.randomWallpaper && randomWallpaperTimer.running) {
randomWallpaperTimer.stop()
}
}