Don't open channels multiple times

This commit is contained in:
Fierelier 2020-11-25 04:30:18 +01:00
parent 0ed477a62d
commit 61d901cce6
1 changed files with 7 additions and 0 deletions

View File

@ -483,6 +483,13 @@ class guiChannels:
channel = self.conversations[self.conversationList.currentRow()]
guiLock.acquire()
for gui in openGuis:
if gui.type == "channel":
if gui.channel == channel:
gui.window.setWindowState(gui.window.windowState() & ~Qt.WindowMinimized | Qt.WindowActive)
gui.window.activateWindow()
guiLock.release()
return
openGuis.append(guiChannel(channel))
guiLock.release()