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:
parent
6493e1798c
commit
bb5ec8cf55
2 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue