From e4fa6253f2f02d367715640cfd6f144a99aab58f Mon Sep 17 00:00:00 2001 From: Keyang556 <65295310+keyang556@users.noreply.github.com> Date: Thu, 9 Apr 2026 08:46:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=5FmessageReaderHandle?= =?UTF-8?q?SaveDialog=20=E7=B8=AE=E6=8E=92=E9=8C=AF=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Haiku 4.5 --- addon/appModules/line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/appModules/line.py b/addon/appModules/line.py index a244224..312bc74 100644 --- a/addon/appModules/line.py +++ b/addon/appModules/line.py @@ -5986,7 +5986,7 @@ def _enumCallback(hwnd, lParam): # The file dialog has a ComboBoxEx32 > ComboBox > Edit hierarchy editHwnd = self._findSaveDialogEdit(dialogHwnd) if not editHwnd: - self._messageReaderPending = False + self._messageReaderPending = False ui.message(_("無法操作儲存對話框")) return From 39971f556a591020524fe2b439561160fdc8d52d Mon Sep 17 00:00:00 2001 From: Keyang556 <65295310+keyang556@users.noreply.github.com> Date: Thu, 9 Apr 2026 12:33:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=5FRECALL=5FRE=20?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E7=A9=BA=E6=A0=BC=E5=8F=8A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E9=87=8D=E8=A4=87=E7=9A=84=20import=20tempfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _RECALL_RE 正則表達式姓名捕獲組後補上空格,與 _MSG_RE 格式一致 - 移除 _messageReaderHandleSaveDialog 函式開頭重複的 import tempfile Co-Authored-By: Claude Sonnet 4.6 --- addon/appModules/_chatParser.py | 2 +- addon/appModules/line.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addon/appModules/_chatParser.py b/addon/appModules/_chatParser.py index 52a2572..06c3d1f 100644 --- a/addon/appModules/_chatParser.py +++ b/addon/appModules/_chatParser.py @@ -2,7 +2,7 @@ _DATE_RE = re.compile(r'^\d{4}\.\d{2}\.\d{2} .+$') _MSG_RE = re.compile(r'^(\d{2}:\d{2}) (\S+?) (.+)$') -_RECALL_RE = re.compile(r'^(\d{2}:\d{2}) (\S+?)已收回訊息$') +_RECALL_RE = re.compile(r'^(\d{2}:\d{2}) (\S+?) 已收回訊息$') def parseChatFile(filePath): diff --git a/addon/appModules/line.py b/addon/appModules/line.py index 312bc74..4e0b62a 100644 --- a/addon/appModules/line.py +++ b/addon/appModules/line.py @@ -5941,7 +5941,6 @@ def _messageReaderHandleSaveDialog(self, retriesLeft=10): """Find the Save As dialog, set filename to temp folder, and save.""" import ctypes import ctypes.wintypes as wintypes - import tempfile lineProcessId = self.processID WNDENUMPROC = ctypes.WINFUNCTYPE(wintypes.BOOL, wintypes.HWND, wintypes.LPARAM)