1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00

Hotfix for right-click archive menu. By @real-yfprojects (#1285)

This commit is contained in:
yfprojects 2022-05-07 06:13:48 +00:00 committed by GitHub
parent a9170c3b91
commit a06ba048c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,7 +160,7 @@ def archiveitem_contextmenu(self, pos: QPoint):
self.bRefreshArchive.text(),
self.refresh_archive_info))
archive_actions.append(
menu.addAction(self.bMount.icon(), self.bMount.text(),
menu.addAction(self.bMountArchive.icon(), self.bMountArchive.text(),
self.bmount_clicked))
archive_actions.append(
menu.addAction(self.bExtract.icon(), self.bExtract.text(),
@ -324,7 +324,7 @@ def on_selection_change(self, selected=None, deselected=None):
widget = layout.itemAt(index).widget()
widget.setToolTip(self.tooltip_dict.get(widget, ""))
# refresh bMount for the selected archive
# refresh bMountArchive for the selected archive
self.bmountarchive_refresh()
else:
# too few or too many selected.
@ -501,7 +501,7 @@ def bmountrepo_clicked(self):
def bmountarchive_refresh(self):
"""
Update label, tooltip and state of `bMount`.
Update label, tooltip and state of `bMountArchive`.
The new state depends on the mount status of the current archive.
This also updates the icon of the button.
@ -522,7 +522,7 @@ def bmountarchive_refresh(self):
def bmountrepo_refresh(self):
"""
Update label, tooltip and state of `bMount`.
Update label, tooltip and state of `bMountRepo`.
The new state depends on the mount status of the current archive.
This also updates the icon of the button.