Don't open channels multiple times
This commit is contained in:
parent
0ed477a62d
commit
61d901cce6
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue