Skip to content

Commit

Permalink
Add help button to Addon Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Hall committed Aug 19, 2023
1 parent d06e6cb commit 66947e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gramps/gui/plug/_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ def __init__(self, dbstate, uistate, track):
)
dialog.add_button(_("Refresh"), RELOAD)
dialog.add_button(_("_Close"), Gtk.ResponseType.CLOSE)
dialog.add_button(_("_Help"), Gtk.ResponseType.HELP)
self.set_window(dialog, None, self.title)

self.req = Requirements()
Expand Down Expand Up @@ -450,6 +451,12 @@ def __init__(self, dbstate, uistate, track):

self.refresh()

def help(self):
"""
Display the Addon Manager help page.
"""
display_help("Addon_Manager")

def __create_filter_combo(self, store, default):
"""
Create a ComboBox for filters.
Expand Down Expand Up @@ -588,6 +595,8 @@ def __on_dialog_button(self, dialog, response_id):
self.close(dialog)
elif response_id == RELOAD:
self.refresh()
elif response_id == Gtk.ResponseType.HELP:
self.help()

def create_projects_panel(self):
"""
Expand Down

0 comments on commit 66947e6

Please sign in to comment.