Skip to content

Commit

Permalink
Rename Upgrade to Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Hall committed Aug 19, 2023
1 parent 8c0457b commit 320bc82
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gramps/gui/plug/_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def __init__(self, manager, addon, req, window):
bb.pack_start(b3, False, False, 0)

if "_v" in addon and addon["_v"] != addon["v"]:
b4 = Gtk.Button(label=_("Upgrade"))
b4.connect("clicked", self.__on_upgrade_clicked, addon)
b4 = Gtk.Button(label=_("Update"))
b4.connect("clicked", self.__on_update_clicked, addon)
bb.pack_end(b4, False, False, 0)

vbox.pack_start(bb, False, False, 0)
Expand Down Expand Up @@ -310,13 +310,13 @@ def __on_requires_clicked(self, button, addon):
"""
InfoDialog(_("Requirements"), self.req.info(addon), parent=self.window)

def __on_upgrade_clicked(self, button, addon):
def __on_update_clicked(self, button, addon):
"""
Upgrade the addon.
Update the addon.
"""
path = addon["_u"] + "/download/" + addon["z"]
load_addon_file(path)
self.manager.upgrade_addon(addon["i"])
self.manager.update_addon(addon["i"])
self.manager.refresh()

def __create_lozenge(self, description, text):
Expand Down Expand Up @@ -392,7 +392,7 @@ def __init__(self, dbstate, uistate, track):
self.addon_combo.append_text(_("All addons"))
self.addon_combo.append_text(_("Uninstalled"))
self.addon_combo.append_text(_("Installed"))
self.addon_combo.append_text(_("Upgrade"))
self.addon_combo.append_text(_("Update"))
self.addon_combo.set_active(0)
self.addon_combo.connect("changed", self.__combo_changed)
hbox.pack_start(self.addon_combo, False, False, 0)
Expand Down Expand Up @@ -503,9 +503,9 @@ def refresh(self):
thread = GetAddons(self.load_addons)
thread.start()

def upgrade_addon(self, addon_id):
def update_addon(self, addon_id):
"""
Upgrade the given addon.
Update the given addon.
"""
pdata = self.__preg.get_plugin(addon_id)
self.__pmgr.reg_plugin_dir(
Expand Down Expand Up @@ -591,7 +591,7 @@ def __filter_func(self, row):
if addon_text == _("Installed"):
if "_v" not in row.addon:
return False
if addon_text == _("Upgrade"):
if addon_text == _("Update"):
if "_v" not in row.addon:
return False
if row.addon["v"] == row.addon["_v"]:
Expand Down

0 comments on commit 320bc82

Please sign in to comment.