app-ui: three fixes found re-reading the first pass
- UIBridge remembered only the lowercased key of a peer, so a "Lost X" notification for a row that vanished printed the name in lower case; and the spelling map was built with Dictionary(uniqueKeysWithValues:), which traps when a peer pair has two connections carrying one name. - SettingsWindowController.show() refreshed the drafts unconditionally, so opening the Advanced pane from the menu threw away a half-typed security key. It now refreshes only when the window was not visible. - StatusItem: dropped the unused StatusModel.hasProblem and the dead fill/size argument in the icon drawing. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
1 parent
6b2b3fc65a
commit
716c5be5c5
3 files changed
+20
-18
No files matched your search
@@ -27,7 +27,9 @@ import SwiftUI
|
||||
public func show(pane: SettingsPane? = nil) {
|
||||
if let pane { self.pane.selected = pane }
|
||||
model.storeChanged()
|
||||
model.refreshDrafts()
|
||||
// Re-opening starts from what is saved; bringing an already-open window
|
||||
// forward must not throw away what the user is halfway through typing.
|
||||
if !isVisible { model.refreshDrafts() }
|
||||
let window = window ?? makeWindow()
|
||||
self.window = window
|
||||
NSApp.activate(ignoringOtherApps: true)
|
||||
|
||||
Reference in new issue
Block a user