Fix #33, display rime IME name when use fcitx

This commit is contained in:
Wu Zhenyu 2022-11-15 18:54:34 +08:00
parent d79d816e24
commit 8decf940cd
No known key found for this signature in database
GPG key ID: 0E07E1F8C0EC10AD

View file

@ -19,7 +19,11 @@ class FcitxComm():
self.fcitx.Deactivate()
def current(self):
return self.fcitx.CurrentInputMethod()
ime = self.fcitx.CurrentInputMethod()
if str(ime) == 'rime':
rime = FcitxRimeComm()
ime = rime.current()
return ime
class FcitxRimeComm():
def __init__(self):