From 262f8c7fe519f1bb1ecf17fb35f93a6c5456f5b2 Mon Sep 17 00:00:00 2001 From: chenyong Date: Mon, 10 Oct 2016 21:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=B6=88=E6=81=AF=E7=B4=AF?= =?UTF-8?q?=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/unreadchecker.cpp | 3 +++ plugin/unreadchecker.h | 1 + 2 files changed, 4 insertions(+) diff --git a/plugin/unreadchecker.cpp b/plugin/unreadchecker.cpp index cda3a01..6173ba0 100644 --- a/plugin/unreadchecker.cpp +++ b/plugin/unreadchecker.cpp @@ -15,7 +15,10 @@ void UnreadChecker::timerEvent(QTimerEvent *event) { auto count = mFeiq->getUnreadCount(); if (count > 0) + { + PlatformDepend::instance().hideAllNotify(); PlatformDepend::instance().showNotify("未读提醒", QString("还有%1条未读消息").arg(count)); + } } } diff --git a/plugin/unreadchecker.h b/plugin/unreadchecker.h index 5820ed2..8d41408 100644 --- a/plugin/unreadchecker.h +++ b/plugin/unreadchecker.h @@ -19,6 +19,7 @@ protected: private: int mUnreadTimerInterval; int mUnreadTimerId=-1; + int mLastCheckCount=0; }; #endif // UNREADCHECKER_H