Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartmnt committed Jan 2, 2025
1 parent f642af1 commit b081d78
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/mumble/widgets/TrayIcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ TrayIcon::TrayIcon() : QSystemTrayIcon(Global::get().mw), m_statusIcon(Global::g
show();
}

#include <QDebug>

void TrayIcon::on_icon_update() {
std::reference_wrapper< QIcon > newIcon = Global::get().mw->qiIcon;
QIcon &newIcon;

const ClientUser *p = ClientUser::get(Global::get().uiSession);

Expand Down Expand Up @@ -92,9 +94,14 @@ void TrayIcon::on_icon_update() {
newIcon = Global::get().mw->qiTalkingOff;
break;
}
} else {
// Fallback generic Mumble icon
newIcon = Global::get().mw->qiIcon;
}

if (&newIcon.get() != &m_statusIcon.get()) {
qDebug() << "newIcon addr " << &newIcon << " m_statusIcon addr " << &m_statusIcon.get();

if (&newIcon != &m_statusIcon.get()) {
m_statusIcon = newIcon;
applyIcon(m_statusIcon);
}
Expand Down

0 comments on commit b081d78

Please sign in to comment.