You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the window stays hidden when pressing show/hide. I then do the following:
press the show/hide button. The app is now hidden.
right-click on the icon down in the dock on macOS. A menu will appear with several items.
In the menu one of the options is to hide the app. However, the app is already hidden, because I pressed show/hide. I would expect to get the option to show the app. This means that macOS does not entirely understand what happens when we call hide().
Solution
If I change to the following in WindowManager.swift
public func hide() {
DispatchQueue.main.async {
NSApp.hide(nil)
}
}
It seems to fix the problem. Now, when I press show/hide and the app is hidden, I get the option to show the app when right-clicking on the icon in the dock on macOS.
The text was updated successfully, but these errors were encountered:
Issue
If I try running the example code but remove the following lines:
the window stays hidden when pressing
show/hide
. I then do the following:show/hide
button. The app is now hidden.show/hide
. I would expect to get the option to show the app. This means that macOS does not entirely understand what happens when we callhide()
.Solution
If I change to the following in
WindowManager.swift
It seems to fix the problem. Now, when I press
show/hide
and the app is hidden, I get the option to show the app when right-clicking on the icon in the dock on macOS.The text was updated successfully, but these errors were encountered: