From 3381fa93fef35f639fc1811d82d61470fa841f9b Mon Sep 17 00:00:00 2001 From: Aheli Ghosh Date: Wed, 3 Feb 2021 02:18:56 +0530 Subject: [PATCH 1/2] mscolab disconnect #637 --- mslib/msui/mscolab.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mslib/msui/mscolab.py b/mslib/msui/mscolab.py index 8acaf23d6..70b45b081 100644 --- a/mslib/msui/mscolab.py +++ b/mslib/msui/mscolab.py @@ -163,6 +163,8 @@ def disconnect_handler(self): self.loginButton.setEnabled(False) self.addUser.setEnabled(False) self.connectMscolab.setEnabled(True) + self.url.setEnabled(True) + self.url.setEditable(True) # set mscolab_server_url to None self.mscolab_server_url = None @@ -186,6 +188,8 @@ def connect_handler(self): # enable and disable right buttons self.loginButton.setEnabled(True) self.addUser.setEnabled(True) + self.url.setEditable(False) + self.url.setEnabled(False) self.disconnectMscolab.setEnabled(True) self.connectMscolab.setEnabled(False) if self.mscolab_server_url not in self.settings["server_settings"].keys(): From 8c340c12356eb94f12683e640de39edbea2f3908 Mon Sep 17 00:00:00 2001 From: Aheli Ghosh Date: Wed, 3 Feb 2021 09:46:32 +0530 Subject: [PATCH 2/2] Removed set editable #637 --- mslib/msui/mscolab.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mslib/msui/mscolab.py b/mslib/msui/mscolab.py index 70b45b081..98d0e618c 100644 --- a/mslib/msui/mscolab.py +++ b/mslib/msui/mscolab.py @@ -164,7 +164,6 @@ def disconnect_handler(self): self.addUser.setEnabled(False) self.connectMscolab.setEnabled(True) self.url.setEnabled(True) - self.url.setEditable(True) # set mscolab_server_url to None self.mscolab_server_url = None @@ -188,7 +187,6 @@ def connect_handler(self): # enable and disable right buttons self.loginButton.setEnabled(True) self.addUser.setEnabled(True) - self.url.setEditable(False) self.url.setEnabled(False) self.disconnectMscolab.setEnabled(True) self.connectMscolab.setEnabled(False)