From 3492da4e063735485d56ac9398373075b261174b Mon Sep 17 00:00:00 2001 From: Manu Date: Mon, 26 Nov 2018 15:35:22 +0800 Subject: [PATCH] Coding style and menu fix. --- src/vorta/tray_menu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vorta/tray_menu.py b/src/vorta/tray_menu.py index ee6022ac..c8eb2492 100644 --- a/src/vorta/tray_menu.py +++ b/src/vorta/tray_menu.py @@ -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: