Skip to content

Commit

Permalink
Fix #2478
Browse files Browse the repository at this point in the history
  • Loading branch information
joernu76 committed Aug 22, 2024
1 parent 4344e00 commit 2f94693
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mslib/msui/mscolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,13 @@ def after_login(self, emailid, url, r):
self.user = _json["user"]
self.mscolab_server_url = url

if config_loader(dataset="MSCOLAB_skip_archived_operations"):
self.ui.pbOpenOperationArchive.setEnabled(False)
self.ui.pbOpenOperationArchive.setToolTip("This button is disabled to the config option 'MSCOLAB_skip_archived_operations'")
else:
self.ui.pbOpenOperationArchive.setEnabled(True)
self.ui.pbOpenOperationArchive.setToolTip("")

# create socket connection here
try:
self.conn = sc.ConnectionManager(self.token, user=self.user, mscolab_server_url=self.mscolab_server_url)
Expand Down

0 comments on commit 2f94693

Please sign in to comment.