mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Mention popup fix
+ will now only popup with a mention alert when you are not on the same tab/window. + will also no longer popup by mentioning yourself
This commit is contained in:
parent
8ca2135f08
commit
b20ae9710c
4 changed files with 15 additions and 5 deletions
|
|
@ -5,13 +5,11 @@
|
|||
#include <QDesktopServices>
|
||||
#include <QApplication>
|
||||
#include <QDebug>
|
||||
#include <QSystemTrayIcon>
|
||||
#include "chatview.h"
|
||||
#include "user_level.h"
|
||||
#include "user_context_menu.h"
|
||||
#include "pixmapgenerator.h"
|
||||
#include "settingscache.h"
|
||||
#include "main.h"
|
||||
#include "tab_userlists.h"
|
||||
|
||||
const QColor DEFAULT_MENTION_COLOR = QColor(194, 31, 47);
|
||||
|
|
@ -282,9 +280,7 @@ bool ChatView::shouldShowSystemPopup() {
|
|||
}
|
||||
|
||||
void ChatView::showSystemPopup(QString &sender) {
|
||||
disconnect(trayIcon, SIGNAL(messageClicked()), 0, 0);
|
||||
trayIcon->showMessage(sender + tr(" mentioned you."), tr("Click to view"));
|
||||
connect(trayIcon, SIGNAL(messageClicked()), this, SLOT(actMessageClicked()));
|
||||
emit showMentionPopup(sender);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue