Using a custom logger with colors and timestamp instead of console.xxx

This commit is contained in:
quadbyte 2025-08-16 19:31:22 -04:00
parent 4794477be3
commit e800bc161d
34 changed files with 278 additions and 236 deletions

View file

@ -49,11 +49,11 @@ Singleton {
reload()
}
onLoaded: function () {
console.log("[Settings] Loaded")
Logger.log("Settings", "Loaded")
Qt.callLater(function () {
// Only set wallpaper on initial load, not on reloads
if (isInitialLoad && adapter.wallpaper.current !== "") {
console.log("[Settings] Set current wallpaper", adapter.wallpaper.current)
Logger.log("Settings", "Set current wallpaper", adapter.wallpaper.current)
WallpapersService.setCurrentWallpaper(adapter.wallpaper.current, true)
}
isInitialLoad = false