Skip to content

Commit

Permalink
Clear the Add Feed sheet before presenting it
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Calderolla committed Apr 1, 2021
1 parent 8a3ba55 commit 448edc0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Catch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 708;
CURRENT_PROJECT_VERSION = 709;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -826,7 +826,7 @@
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 708;
CURRENT_PROJECT_VERSION = 709;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand Down
5 changes: 5 additions & 0 deletions Sources/App/AddFeedController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ class AddFeedController: NSWindowController {

window.sheetParent?.endSheet(window)
}

func clear() {
feedNameTextField.stringValue = ""
feedURLTextField.stringValue = ""
}
}


Expand Down
1 change: 1 addition & 0 deletions Sources/App/PreferencesController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ extension PreferencesController {
}

@IBAction private func addFeed(_: Any?) {
addFeedSheetController.clear()
window?.beginSheet(addFeedSheetController.window!, completionHandler: nil)
}

Expand Down

0 comments on commit 448edc0

Please sign in to comment.