Skip to content

Commit

Permalink
Fix room name case sensitivity UI issue (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h committed Oct 18, 2021
1 parent bbcef5d commit 69621ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions syncplay/ui/GuiConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,9 @@ def addBasicTab(self):
self.serverpassLabel = QLabel(getMessage("password-label"), self)
self.roomsCombobox = QtWidgets.QComboBox(self)
self.roomsCombobox.setEditable(True)
caseSensitiveCompleter = QtWidgets.QCompleter("", self)
caseSensitiveCompleter.setCaseSensitivity(Qt.CaseSensitive)
self.roomsCombobox.setCompleter(caseSensitiveCompleter)
self.fillRoomsCombobox()
self.roomsCombobox.setEditText(config['room'])
self.usernameLabel = QLabel(getMessage("name-label"), self)
Expand Down
3 changes: 3 additions & 0 deletions syncplay/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,9 @@ def addTopLayout(self, window):
window.listLayout.addWidget(window.listSplit)
window.roomsCombobox = QtWidgets.QComboBox(self)
window.roomsCombobox.setEditable(True)
caseSensitiveCompleter = QtWidgets.QCompleter("", self)
caseSensitiveCompleter.setCaseSensitivity(Qt.CaseSensitive)
window.roomsCombobox.setCompleter(caseSensitiveCompleter)
#window.roomsCombobox.setMaxLength(constants.MAX_ROOM_NAME_LENGTH)
window.roomButton = QtWidgets.QPushButton(
QtGui.QPixmap(resourcespath + 'door_in.png'),
Expand Down

0 comments on commit 69621ee

Please sign in to comment.