Skip to content

Commit

Permalink
fix: add menu is now dark appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jun 6, 2018
1 parent 774f613 commit 7c41b97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Apptivator/UI/APPopoverViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ class APPopoverViewController: NSViewController {

@IBAction func onAddClick(_ sender: NSButton) {
guard !isSequenceEditorActive else { return }
addMenu.popUp(positioning: addMenu.item(at: 0), at: NSEvent.mouseLocation, in: nil)
// The current event should still be the left-mouse-up event.
if let event = NSApp.currentEvent {
NSMenu.popUpContextMenu(addMenu, with: event, for: addButton)
}
}

@IBAction func onRemoveClick(_ sender: NSButton) {
Expand Down

0 comments on commit 7c41b97

Please sign in to comment.