mirror of
https://github.com/ciromattia/kcc
synced 2025-12-11 00:36:33 +00:00
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:
@@ -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