1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-03 05:36:19 +00:00

Coding style and menu fix.

This commit is contained in:
Manu 2018-11-26 15:35:22 +08:00
parent c63c37fed2
commit 3492da4e06

View file

@ -1,4 +1,4 @@
from PyQt5.QtWidgets import QMenu, QSystemTrayIcon, QAction
from PyQt5.QtWidgets import QMenu, QSystemTrayIcon
from PyQt5.QtGui import QIcon
from .utils import get_asset
@ -46,7 +46,7 @@ def on_user_click(self):
if BorgThread.is_running():
status.setText('Backup in Progress')
profile_menu.setEnabled(False)
profile_menu.setVisible(False)
cancel_action = menu.addAction("Cancel Backup")
cancel_action.triggered.connect(self.app.backup_cancelled_event.emit)
else: