autoformatting

This commit is contained in:
LemmyCook 2025-09-11 11:26:29 -04:00
parent d30e14f611
commit 50ddd2916c
3 changed files with 55 additions and 53 deletions

View file

@ -145,7 +145,6 @@ Singleton {
widget.use12HourClock = widget.use12HourClock !== undefined ? widget.use12HourClock : adapter.location.use12HourClock
widget.reverseDayMonth = widget.reverseDayMonth !== undefined ? widget.reverseDayMonth : adapter.location.reverseDayMonth
if (widget.showDate !== undefined) {
console.log("HELLLO")
widget.displayFormat = "time-date"
} else if (widget.showSeconds) {
widget.displayFormat = "time-seconds"

View file

@ -101,6 +101,7 @@ Singleton {
return
}
} catch (e) {
// Hyprland not available
}
@ -134,8 +135,7 @@ Singleton {
}
}
function setupHyprlandConnections() {
// Connections are set up at the top level, this function just marks that Hyprland is ready
function setupHyprlandConnections() {// Connections are set up at the top level, this function just marks that Hyprland is ready
}
function updateHyprlandWorkspaces() {
@ -165,12 +165,14 @@ Singleton {
}
}
} catch (e2) {
// ignore occupancy errors; fall back to false
}
for (var i = 0; i < hlWorkspaces.length; i++) {
const ws = hlWorkspaces[i]
if (!ws) continue
if (!ws)
continue
try {
// Only append workspaces with id >= 1
@ -226,6 +228,7 @@ Singleton {
appId = String(toplevel.appId)
}
} catch (propertyError) {
// Ignore property access errors and continue with empty appId
}
@ -237,6 +240,7 @@ Singleton {
appId = String(ipcData.class || ipcData.initialClass || ipcData.appId || ipcData.wm_class || "")
}
} catch (ipcError) {
// Ignore errors when accessing lastIpcObject
}
}
@ -278,7 +282,6 @@ Singleton {
"workspaceId": workspaceId,
"isFocused": isActivated
})
} catch (toplevelError) {
// Log the error but continue processing other toplevels
Logger.warn("Compositor", "Error processing toplevel at index", i, ":", toplevelError)