Skip to content

Commit

Permalink
- Fixes pins restoring for subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Jul 12, 2024
1 parent e6b0dde commit d6dbe92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion FSNotes iOS/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ class ViewController: UIViewController, UISearchBarDelegate, UIGestureRecognizer

let projectsLoading = Date()
let results = storage.getProjectDiffs()

storage.loadNotesCloudPins()

OperationQueue.main.addOperation {
self.sidebarTableView.removeRows(projects: results.0)
self.sidebarTableView.insertRows(projects: results.1)
Expand Down
4 changes: 0 additions & 4 deletions FSNotes/View/SearchTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ class SearchTextField: NSSearchField, NSSearchFieldDelegate {
self.lastQueryLength = 0

addRecent(query: stringValue)

if stringValue.count == 0 {
search()
}
}

override func keyUp(with event: NSEvent) {
Expand Down
1 change: 1 addition & 0 deletions FSNotes/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ class ViewController: EditorViewController,

let projectsLoading = Date()
let results = storage.getProjectDiffs()
storage.loadNotesCloudPins()

OperationQueue.main.addOperation {
self.sidebarOutlineView.removeRows(projects: results.0)
Expand Down

0 comments on commit d6dbe92

Please sign in to comment.