autoformatting
This commit is contained in:
parent
d30e14f611
commit
50ddd2916c
3 changed files with 55 additions and 53 deletions
|
|
@ -145,7 +145,6 @@ Singleton {
|
||||||
widget.use12HourClock = widget.use12HourClock !== undefined ? widget.use12HourClock : adapter.location.use12HourClock
|
widget.use12HourClock = widget.use12HourClock !== undefined ? widget.use12HourClock : adapter.location.use12HourClock
|
||||||
widget.reverseDayMonth = widget.reverseDayMonth !== undefined ? widget.reverseDayMonth : adapter.location.reverseDayMonth
|
widget.reverseDayMonth = widget.reverseDayMonth !== undefined ? widget.reverseDayMonth : adapter.location.reverseDayMonth
|
||||||
if (widget.showDate !== undefined) {
|
if (widget.showDate !== undefined) {
|
||||||
console.log("HELLLO")
|
|
||||||
widget.displayFormat = "time-date"
|
widget.displayFormat = "time-date"
|
||||||
} else if (widget.showSeconds) {
|
} else if (widget.showSeconds) {
|
||||||
widget.displayFormat = "time-seconds"
|
widget.displayFormat = "time-seconds"
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ Singleton {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
||||||
// Hyprland not available
|
// Hyprland not available
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -134,8 +135,7 @@ Singleton {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupHyprlandConnections() {
|
function setupHyprlandConnections() {// Connections are set up at the top level, this function just marks that Hyprland is ready
|
||||||
// Connections are set up at the top level, this function just marks that Hyprland is ready
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateHyprlandWorkspaces() {
|
function updateHyprlandWorkspaces() {
|
||||||
|
|
@ -165,12 +165,14 @@ Singleton {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e2) {
|
} catch (e2) {
|
||||||
|
|
||||||
// ignore occupancy errors; fall back to false
|
// ignore occupancy errors; fall back to false
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < hlWorkspaces.length; i++) {
|
for (var i = 0; i < hlWorkspaces.length; i++) {
|
||||||
const ws = hlWorkspaces[i]
|
const ws = hlWorkspaces[i]
|
||||||
if (!ws) continue
|
if (!ws)
|
||||||
|
continue
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Only append workspaces with id >= 1
|
// Only append workspaces with id >= 1
|
||||||
|
|
@ -226,6 +228,7 @@ Singleton {
|
||||||
appId = String(toplevel.appId)
|
appId = String(toplevel.appId)
|
||||||
}
|
}
|
||||||
} catch (propertyError) {
|
} catch (propertyError) {
|
||||||
|
|
||||||
// Ignore property access errors and continue with empty appId
|
// 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 || "")
|
appId = String(ipcData.class || ipcData.initialClass || ipcData.appId || ipcData.wm_class || "")
|
||||||
}
|
}
|
||||||
} catch (ipcError) {
|
} catch (ipcError) {
|
||||||
|
|
||||||
// Ignore errors when accessing lastIpcObject
|
// Ignore errors when accessing lastIpcObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -278,7 +282,6 @@ Singleton {
|
||||||
"workspaceId": workspaceId,
|
"workspaceId": workspaceId,
|
||||||
"isFocused": isActivated
|
"isFocused": isActivated
|
||||||
})
|
})
|
||||||
|
|
||||||
} catch (toplevelError) {
|
} catch (toplevelError) {
|
||||||
// Log the error but continue processing other toplevels
|
// Log the error but continue processing other toplevels
|
||||||
Logger.warn("Compositor", "Error processing toplevel at index", i, ":", toplevelError)
|
Logger.warn("Compositor", "Error processing toplevel at index", i, ":", toplevelError)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue