From 9e1c6b2623961125dba0e5319cee452a411f32a4 Mon Sep 17 00:00:00 2001 From: evilbeast Date: Tue, 23 Aug 2022 18:47:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dui=E4=BE=8B=E5=AD=90=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=8A=B6=E6=80=81=E5=88=A4=E6=96=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/send_text_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/send_text_ui.py b/examples/send_text_ui.py index cda06da..64543c8 100644 --- a/examples/send_text_ui.py +++ b/examples/send_text_ui.py @@ -28,7 +28,7 @@ class NtChatWindow(XWindow): self.wechat_instance.on(ntchat.MT_ALL, self.on_recv_message) def on_btn_send_clicked(self, sender, _): - if not self.wechat_instance.login_status: + if not self.wechat_instance or not self.wechat_instance.login_status: svg = xcgui.XSvg.loadFile("resources\\warn.svg") svg.setSize(16, 16) self.notifyMsgWindowPopup(xcgui.position_flag_top, "警告", "请先打开并登录微信",