-
Notifications
You must be signed in to change notification settings - Fork 385
Show discard or keep alert after tapping outside of the PR reviewers,… #2633
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,8 @@ PeopleSectionControllerDelegate { | |
private var owner: String | ||
private var repo: String | ||
|
||
var wasDismissedByDone: Bool = false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this variable be included in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you talking about public protocol ContextMenuDelegate: class {
func contextMenuWillDismiss(viewController: UIViewController, animated: Bool, doneTapped: Bool)
func contextMenuDidDismiss(viewController: UIViewController, animated: Bool, doneTapped: Bool)
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that sounds good! Would maybe make it A bit tricky as the |
||
|
||
init( | ||
selections: [String], | ||
exclusions: [String], | ||
|
@@ -165,6 +167,11 @@ PeopleSectionControllerDelegate { | |
} | ||
} | ||
|
||
@objc override func onMenuDone() { | ||
self.wasDismissedByDone = true | ||
super.onMenuDone() | ||
} | ||
|
||
// MARK: BaseListViewControllerDataSource | ||
|
||
func models(adapter: ListSwiftAdapter) -> [ListSwiftPair] { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put this logic in a function, as it seems to be repeated from lines 312-320?