Skip to content

Commit 26b1f14

Browse files
committed
add waitcursor to contribution tab updates + remove un-neccesary FT update call
1 parent 2681204 commit 26b1f14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activity_browser/layouts/tabs/LCA_results_tabs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ def connect_signals(self):
11091109

11101110
def update_tab(self):
11111111
"""Update the tab."""
1112+
QApplication.setOverrideCursor(QtCore.Qt.WaitCursor)
11121113
self.set_combobox_changes()
11131114

11141115
if self.cutoff_menu.limit_type == "percent":
@@ -1118,6 +1119,7 @@ def update_tab(self):
11181119
self.total_menu.range.setEnabled(False)
11191120
self.total_menu.score.setEnabled(False)
11201121
super().update_tab()
1122+
QApplication.restoreOverrideCursor()
11211123

11221124
def update_dataframe(self, *args, **kwargs):
11231125
"""Update the underlying dataframe.
@@ -1315,7 +1317,6 @@ def __init__(self, cs_name, parent=None):
13151317
def update_tab(self):
13161318
"""Update the tab."""
13171319
if self.has_been_opened:
1318-
self.set_combobox_changes()
13191320
super().update_tab()
13201321

13211322
def build_combobox(

0 commit comments

Comments
 (0)