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
I'm trying to add the following feature to the Avalonia-based app: when application window is closed, it stays running, its window hides, its dock-icon has a dot below it, and its window shows again on click on the dock icon.
Currently I have managed to do the following: intercept OnClosing event and call Hide()
protectedoverridevoidOnClosing(WindowClosingEventArgse){varlauncher=DataContextasViewModels.Launcher;if(/* should stay in dock */){e.Cancel=true;Hide();}else{launcher?.Quit(Width,Height);}base.OnClosing(e);}
However, if I choose Show all windows item in the dock icon right-click menu, I see an empty window with the message "No available windows"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm a newbie in Macos development.
I'm trying to add the following feature to the Avalonia-based app: when application window is closed, it stays running, its window hides, its dock-icon has a dot below it, and its window shows again on click on the dock icon.
Currently I have managed to do the following: intercept
OnClosing
event and callHide()
However, if I choose
Show all windows
item in the dock icon right-click menu, I see an empty window with the message "No available windows"Beta Was this translation helpful? Give feedback.
All reactions