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
If so, should there be a note about this in the tutorial (perhaps with a link to how to turn the behaviour off so that your app regains focus instead of a new instance being spawned?)
The text was updated successfully, but these errors were encountered:
If you don't set a default action for a notification it will activate, whatever that means for your app. So this should be the same as if it was clicked in the dock or applications menu or activated from anywhere else in the UI.
If you want a single window app, you can override that behavior in the activate function of your application class. I believe that Gtk.Application has a way to make your app single window built in, but otherwise you can check if get_active_window () returns null and use present_with_time () instead
In the notifications tutorial (https://docs.elementary.io/develop/apis/notifications), clicking on the notification opens a new instance of the app.
Is this the expected default behaviour?
If so, should there be a note about this in the tutorial (perhaps with a link to how to turn the behaviour off so that your app regains focus instead of a new instance being spawned?)
The text was updated successfully, but these errors were encountered: