Unread messages count as an Unity compatible badge (#1085)
Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
This commit is contained in:
parent
163ef6ebdc
commit
0e02024084
5 changed files with 116 additions and 0 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "UserSettingsPage.h"
|
||||
#include "UsersModel.h"
|
||||
#include "Utils.h"
|
||||
#include "dock/Dock.h"
|
||||
#include "emoji/EmojiModel.h"
|
||||
#include "emoji/Provider.h"
|
||||
#include "encryption/DeviceVerificationFlow.h"
|
||||
|
|
@ -99,6 +100,8 @@ MainWindow::MainWindow(QWindow *parent)
|
|||
SLOT(iconActivated(QSystemTrayIcon::ActivationReason)));
|
||||
|
||||
trayIcon_->setVisible(userSettings_->tray());
|
||||
dock_ = new Dock(this);
|
||||
connect(chat_page_, SIGNAL(unreadMessages(int)), dock_, SLOT(setUnreadCount(int)));
|
||||
|
||||
// load cache on event loop
|
||||
QTimer::singleShot(0, this, [this] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue