Skip to content

Commit

Permalink
Fix crash when launching with managed room specified (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h committed Oct 9, 2020
1 parent 175c177 commit 69607c7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions syncplay/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = '1.6.6'
revision = ' beta 1'
revision = ' beta 2'
milestone = 'Yoitsu'
release_number = '88'
release_number = '89'
projectURL = 'https://syncplay.pl/'
7 changes: 5 additions & 2 deletions syncplay/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,11 @@ def controllerIdentificationSuccess(self, username, roomname):
def storeControlPassword(self, room, password):
if password:
self.controlpasswords[room] = password
if self._config['autosaveJoinsToList']:
self.ui.addRoomToList(room+":"+password)
try:
if self._config['autosaveJoinsToList']:
self.ui.addRoomToList(room+":"+password)
except:
pass

def getControlledRoomPassword(self, room):
if room in self.controlpasswords:
Expand Down
7 changes: 5 additions & 2 deletions syncplay/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,8 +891,11 @@ def fileSwitchFoundFiles(self):

def updateRoomName(self, room=""):
self.roomsCombobox.setEditText(room)
if self.config['autosaveJoinsToList']:
self.addRoomToList(room)
try:
if self.config['autosaveJoinsToList']:
self.addRoomToList(room)
except:
pass

def showDebugMessage(self, message):
print(message)
Expand Down

0 comments on commit 69607c7

Please sign in to comment.