Skip to content

Commit

Permalink
Make sure focus is returnable after opening about/preferences
Browse files Browse the repository at this point in the history
Fixes #435
  • Loading branch information
p0deje committed Aug 10, 2022
1 parent d6845a2 commit a55dfe5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Maccy/Maccy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class Maccy: NSObject {
case .about:
Maccy.returnFocusToPreviousApp = false
about.openAbout(sender)
Maccy.returnFocusToPreviousApp = true
case .clear:
clearUnpinned()
case .clearAll:
Expand All @@ -196,6 +197,7 @@ class Maccy: NSObject {
case .preferences:
Maccy.returnFocusToPreviousApp = false
preferencesWindowController.show()
Maccy.returnFocusToPreviousApp = true
default:
break
}
Expand Down

0 comments on commit a55dfe5

Please sign in to comment.