Skip to content

Commit

Permalink
- Fixes notes creation
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Aug 9, 2024
1 parent bdceeb2 commit 0e0e904
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FSNotes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4582,7 +4582,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 635;
CURRENT_PROJECT_VERSION = 636;
DEVELOPMENT_TEAM = 866P6MTE92;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -4599,7 +4599,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 6.9.0;
MARKETING_VERSION = 6.9.1;
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = co.fluder.FSNotes;
PRODUCT_NAME = FSNotes;
Expand All @@ -4622,7 +4622,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 635;
CURRENT_PROJECT_VERSION = 636;
DEPLOYMENT_LOCATION = NO;
DEVELOPMENT_TEAM = 866P6MTE92;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
Expand All @@ -4640,7 +4640,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 6.9.0;
MARKETING_VERSION = 6.9.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = co.fluder.FSNotes;
PRODUCT_NAME = FSNotes;
Expand Down
5 changes: 5 additions & 0 deletions FSNotes/Business/SearchQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,9 @@ class SearchQuery {

return true
}

public func dropFilter() {
self.terms = nil
self.filter = String()
}
}
1 change: 1 addition & 0 deletions FSNotes/EditorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1494,6 +1494,7 @@ class EditorViewController: NSViewController, NSTextViewDelegate, NSMenuItemVali
disablePreview()

vc.notesTableView.deselectNotes()
vc.storage.searchQuery.dropFilter()
vc.editor.string = text
vc.editor.note = note
vc.search.stringValue.removeAll()
Expand Down

0 comments on commit 0e0e904

Please sign in to comment.