Skip to content

Commit 4d0c25b

Browse files
committed
🐛 Fixed the issue where the title may disappear when searching
1 parent 3e989fa commit 4d0c25b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Mac/ViewController.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,6 +1929,12 @@ class ViewController:
19291929
@objc private func selectRowInstant() {
19301930
notesTableView.selectRowIndexes([0], byExtendingSelection: false)
19311931
notesTableView.scrollRowToVisible(0)
1932+
1933+
// 确保内容加载和标题栏显示
1934+
if notesTableView.noteList.count > 0 {
1935+
let note = notesTableView.noteList[0]
1936+
editArea.fill(note: note, highlight: true)
1937+
}
19321938
}
19331939

19341940
func focusEditArea(firstResponder: NSResponder? = nil) {

0 commit comments

Comments
 (0)