Keep sorted and unique list of sources (#1108)
- sort items on the sources list alphabetically - - don't add item if it is already on the list
This commit is contained in:
1 parent
5b069322a4
commit
77e8952f12
1 file changed
+2
-1
@@ -1028,7 +1028,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
|
||||
MW.activateWindow()
|
||||
if type(message) is bytes:
|
||||
message = message.decode('UTF-8')
|
||||
if not self.conversionAlive and message != 'ARISE':
|
||||
if not self.conversionAlive and message != 'ARISE' and not GUI.jobList.findItems(message, Qt.MatchFlag.MatchExactly):
|
||||
if self.needClean:
|
||||
self.needClean = False
|
||||
GUI.jobList.clear()
|
||||
@@ -1059,6 +1059,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
|
||||
if message[-1] == '/':
|
||||
message = message[:-1]
|
||||
self.handleMessage(message)
|
||||
GUI.jobList.sortItems()
|
||||
|
||||
def forceShutdown(self):
|
||||
self.saveSettings(None)
|
||||
|
||||
Reference in new issue
Block a user