diff --git a/src/config/config.py b/src/config/config.py index c2ceffc..7d92fe8 100644 --- a/src/config/config.py +++ b/src/config/config.py @@ -44,7 +44,7 @@ UpdateUrl3Back = "https://hub.fastgit.xyz/tonquer/JMComic-qt" UpdateVersion = "v1.1.8" -RealVersion = "v1.1.8" +RealVersion = "v1.1.8.1" VersionTime = "2023-11-22" Waifu2xVersion = "1.1.6" diff --git a/src/start.py b/src/start.py index 5722ff6..66f4a04 100644 --- a/src/start.py +++ b/src/start.py @@ -63,7 +63,7 @@ socket.close() app.quit() Log.Warn("server already star") - exit(1) + sys.exit(1) localServer = QLocalServer() # 没有实例运行,创建服务器 localServer.listen(serverName) diff --git a/src/tools/tool.py b/src/tools/tool.py index 99361eb..adc4bde 100644 --- a/src/tools/tool.py +++ b/src/tools/tool.py @@ -913,13 +913,14 @@ def SegmentationPicture(imgData, epsId, scramble_id, bookId): @staticmethod def SegmentationPictureToDisk(imgData, epsId, scramble_id, bookId, path, toFormat): num = ToolUtil.GetSegmentationNum(epsId, scramble_id, bookId) - if num <= 1: - return imgData from PIL import Image from io import BytesIO src = BytesIO(imgData) srcImg = Image.open(src) + if num <= 1: + srcImg.save(path, toFormat) + return size = (width, height) = srcImg.size desImg = Image.new(srcImg.mode, size)