Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
smallevilbeast committed Aug 24, 2022
1 parent 9e1c6b2 commit 1580367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,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, "警告", "请先打开并登录微信",
Expand Down

0 comments on commit 1580367

Please sign in to comment.