Hi,
I am developing my first GTK4/Libadwaita Application with python.
It is intended to have the main application window being opened multiple times with different data loaded.
Now i am facing the issues that some actions are received in the wrong window.
This only happens though, with actions i “installed” to a widget using the “install_action()” method.
self.install_action('panel.search', None, self._on_actions)
self.install_action('panel.add', None, self._on_actions)
self.install_action('panel.edit', None, self._on_actions)
I have those 3 actions installed to a subclassed widget for example.
They are then used with the “action-name” property in some buttons in a UI Template.
Actions i have added to the main Adw.ApplicationWindow using the following method
action = Gio.SimpleAction.new('save', None)
action.connect("activate", self.on_save)
self.add_action(action)
don’t have this issue. They are always received in the correct (active) window.
Sadly my code is on a private gitlab instance atm, so i can’t share the whole application.
I hope someone with more experience can still point me in the right direction tho