fix: switcher would not close, or cycle on its own (closes #3117)
This commit is contained in:
1 parent
c0f0ce7df2
commit
d430f835a4
2 files changed
+1
-2
No files matched your search
@@ -61,7 +61,6 @@ class ATShortcut {
|
||||
func shouldTrigger() -> Bool {
|
||||
if scope == .global {
|
||||
if triggerPhase == .down && (!App.app.appIsBeingUsed || index == nil || index == App.app.shortcutIndex) {
|
||||
App.app.appIsBeingUsed = true
|
||||
return true
|
||||
}
|
||||
if triggerPhase == .up && App.app.appIsBeingUsed && (index == nil || index == App.app.shortcutIndex) && Preferences.shortcutStyle[App.app.shortcutIndex] == .focusOnRelease {
|
||||
|
||||
+1
-1
@@ -206,7 +206,6 @@ class App: AppCenterApplication, NSApplicationDelegate {
|
||||
}
|
||||
|
||||
@objc func showUi() {
|
||||
appIsBeingUsed = true
|
||||
showUiOrCycleSelection(0)
|
||||
}
|
||||
|
||||
@@ -271,6 +270,7 @@ class App: AppCenterApplication, NSApplicationDelegate {
|
||||
|
||||
func showUiOrCycleSelection(_ shortcutIndex: Int) {
|
||||
logger.i("showUiOrCycleSelection")
|
||||
App.app.appIsBeingUsed = true
|
||||
if isFirstSummon || shortcutIndex != self.shortcutIndex {
|
||||
logger.i("showUiOrCycleSelection: isFirstSummon")
|
||||
isFirstSummon = false
|
||||
|
||||
Reference in new issue
Block a user