Skip to content

Commit

Permalink
Added BusyCursor for notify manager is working
Browse files Browse the repository at this point in the history
  • Loading branch information
donob4n committed Feb 19, 2019
1 parent 56cc6c7 commit 17fdb3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qubesmanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
def __init__(self, vm, qapp, init_page="basic", parent=None):
super(VMSettingsWindow, self).__init__(parent)

QtGui.QApplication.setOverrideCursor(QtCore.Qt.BusyCursor)

self.vm = vm
self.qapp = qapp
self.threads_list = []
Expand Down Expand Up @@ -224,6 +226,8 @@ def __init__(self, vm, qapp, init_page="basic", parent=None):
self.refresh_apps_button.clicked.connect(
self.refresh_apps_button_pressed)

QtGui.QApplication.restoreOverrideCursor()

def clear_threads(self):
for thread in self.threads_list:
if thread.isFinished():
Expand Down Expand Up @@ -276,6 +280,8 @@ def save_and_apply(self):
def __save_changes__(self):
ret = []

QtGui.QApplication.setOverrideCursor(QtCore.Qt.BusyCursor)

try:
ret_tmp = self.__apply_basic_tab__()
if ret_tmp:
Expand Down Expand Up @@ -313,6 +319,8 @@ def __save_changes__(self):
except Exception as ex: # pylint: disable=broad-except
ret += [self.tr("Applications tab:"), repr(ex)]

QtGui.QApplication.restoreOverrideCursor()

utils.debug('\n'.join(ret))
return ret

Expand Down

0 comments on commit 17fdb3c

Please sign in to comment.