From 77e8952f12332703561f78701f4e22bcfe296a7f Mon Sep 17 00:00:00 2001 From: kiryl <12550714+kiryl85@users.noreply.github.com> Date: Tue, 25 Nov 2025 07:21:32 +0100 Subject: [PATCH] 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 --- kindlecomicconverter/KCC_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index 9559737..5ec3371 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -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)