mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix notification for focus room in main window
This commit is contained in:
parent
21584cd91d
commit
803bc8cf76
1 changed files with 1 additions and 1 deletions
|
@ -1072,7 +1072,7 @@ TimelineModel::setCurrentIndex(int index)
|
||||||
if (index != oldIndex)
|
if (index != oldIndex)
|
||||||
emit currentIndexChanged(index);
|
emit currentIndexChanged(index);
|
||||||
|
|
||||||
if (MainWindow::instance()->activeRoom() != roomId())
|
if (MainWindow::instance()->activeRoom() != roomId() && QGuiApplication::focusWindow())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!currentId.startsWith('m')) {
|
if (!currentId.startsWith('m')) {
|
||||||
|
|
Loading…
Reference in a new issue