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