Skip to content

Commit a7e57a2

Browse files
committed
chore: migrate toe Adw.AboutDialog
1 parent 49fc4a1 commit a7e57a2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ def do_activate(self):
5252

5353
def on_about_action(self, widget, _):
5454
"""Callback for the app.about action."""
55-
about = Adw.AboutWindow.new_from_appdata(f'{self.get_resource_base_path()}/metainfo', self.version)
56-
about.set_transient_for(self.props.active_window)
57-
about.present()
55+
about = Adw.AboutDialog.new_from_appdata(f'{self.get_resource_base_path()}/metainfo', self.version)
56+
about.present(self.props.active_window)
5857

5958
def on_preferences_action(self, widget, _):
6059
"""Callback for the app.preferences action."""

0 commit comments

Comments
 (0)