1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-03-11 06:33:46 +00:00

Renable buttons on cancel. By @samuel-w (#772)

This commit is contained in:
samuel-w 2021-01-19 23:07:32 -06:00 committed by GitHub
parent 6493e1798c
commit bb5ec8cf55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -92,6 +92,10 @@ class ArchiveTab(ArchiveTabBase, ArchiveTabUI, BackupProfileMixin):
self.toolBox.setItemIcon(0, get_colored_icon('tasks'))
self.toolBox.setItemIcon(1, get_colored_icon('cut'))
def cancel_action(self):
self._set_status(self.tr("Action cancelled."))
self._toggle_all_buttons(True)
def _set_status(self, text):
self.mountErrors.setText(text)
self.mountErrors.repaint()

View file

@ -178,6 +178,7 @@ class MainWindow(MainWindowBase, MainWindowUI):
def backup_cancelled_event(self):
self._toggle_buttons(create_enabled=True)
self.set_log(self.tr('Task cancelled'))
self.archiveTab.cancel_action()
def closeEvent(self, event):
# Save window state in SettingsModel