Skip to content

Commit

Permalink
add waitcursor to contribution tab updates + remove un-neccesary FT u…
Browse files Browse the repository at this point in the history
…pdate call
  • Loading branch information
marc-vdm committed Dec 9, 2024
1 parent 2681204 commit 26b1f14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activity_browser/layouts/tabs/LCA_results_tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@ def connect_signals(self):

def update_tab(self):
"""Update the tab."""
QApplication.setOverrideCursor(QtCore.Qt.WaitCursor)
self.set_combobox_changes()

if self.cutoff_menu.limit_type == "percent":
Expand All @@ -1118,6 +1119,7 @@ def update_tab(self):
self.total_menu.range.setEnabled(False)
self.total_menu.score.setEnabled(False)
super().update_tab()
QApplication.restoreOverrideCursor()

def update_dataframe(self, *args, **kwargs):
"""Update the underlying dataframe.
Expand Down Expand Up @@ -1315,7 +1317,6 @@ def __init__(self, cs_name, parent=None):
def update_tab(self):
"""Update the tab."""
if self.has_been_opened:
self.set_combobox_changes()
super().update_tab()

def build_combobox(
Expand Down

0 comments on commit 26b1f14

Please sign in to comment.