From 89fb9543a4aae7465bb16725fb1dde57e11851a7 Mon Sep 17 00:00:00 2001 From: Dong Yuwei Date: Fri, 25 Oct 2024 22:02:49 +0800 Subject: [PATCH] close db connection when IME deactiveated --- python/input_methods/hallelujah/ime_hallelujah.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/input_methods/hallelujah/ime_hallelujah.py b/python/input_methods/hallelujah/ime_hallelujah.py index 83353768..2c999641 100644 --- a/python/input_methods/hallelujah/ime_hallelujah.py +++ b/python/input_methods/hallelujah/ime_hallelujah.py @@ -88,6 +88,7 @@ def onActivate(self): self.setSelKeys("123456789") def onDeactivate(self): + self.db_connection.close() TextService.onDeactivate(self) # 使用者按下按鍵,在 app 收到前先過濾那些鍵是輸入法需要的。