Autoformatting + converted a bunch console.log to logger, hiding some extra logging
This commit is contained in:
parent
c3515ddcc0
commit
a7b7c03877
11 changed files with 341 additions and 329 deletions
|
|
@ -298,8 +298,6 @@ Singleton {
|
|||
"isFocused": windowData.is_focused === true
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (existingIndex >= 0) {
|
||||
// Update existing window
|
||||
windows[existingIndex] = newWindow
|
||||
|
|
@ -314,13 +312,13 @@ Singleton {
|
|||
const oldFocusedIndex = focusedWindowIndex
|
||||
focusedWindowIndex = windows.findIndex(w => w.id === windowData.id)
|
||||
updateFocusedWindowTitle()
|
||||
|
||||
|
||||
// Only emit activeWindowChanged if the focused window actually changed
|
||||
if (oldFocusedIndex !== focusedWindowIndex) {
|
||||
activeWindowChanged()
|
||||
}
|
||||
} else if (existingIndex >= 0 && existingIndex === focusedWindowIndex) {
|
||||
// If this is the currently focused window (but not newly focused),
|
||||
// If this is the currently focused window (but not newly focused),
|
||||
// still update the title in case it changed, but don't emit activeWindowChanged
|
||||
updateFocusedWindowTitle()
|
||||
}
|
||||
|
|
@ -467,7 +465,7 @@ Singleton {
|
|||
} else {
|
||||
focusedWindowTitle = "(No active window)"
|
||||
}
|
||||
|
||||
|
||||
// Emit signal if title actually changed
|
||||
if (oldTitle !== focusedWindowTitle) {
|
||||
windowTitleChanged()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue