qmlfmt with 120 chars width (rulers)
This commit is contained in:
parent
def932c447
commit
d3f66b1737
17 changed files with 77 additions and 126 deletions
|
|
@ -17,8 +17,7 @@ Singleton {
|
|||
|
||||
function updateFocusedWindowTitle() {
|
||||
if (focusedWindowIndex >= 0 && focusedWindowIndex < windows.length) {
|
||||
focusedWindowTitle = windows[focusedWindowIndex].title
|
||||
|| "(Unnamed window)"
|
||||
focusedWindowTitle = windows[focusedWindowIndex].title || "(Unnamed window)"
|
||||
} else {
|
||||
focusedWindowTitle = "(No active window)"
|
||||
}
|
||||
|
|
@ -113,8 +112,7 @@ Singleton {
|
|||
try {
|
||||
const focusedId = event.WindowFocusChanged.id
|
||||
if (focusedId) {
|
||||
root.focusedWindowIndex = root.windows.findIndex(
|
||||
w => w.id === focusedId)
|
||||
root.focusedWindowIndex = root.windows.findIndex(w => w.id === focusedId)
|
||||
if (root.focusedWindowIndex < 0) {
|
||||
root.focusedWindowIndex = 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue