mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
feat(widget): Disable sound notification for busy
status
Fix #2893. BREAKING CHANGE: Disabling notification sound for `busy` status.
This commit is contained in:
parent
3c21b7e151
commit
e7785ab4c2
|
@ -1294,7 +1294,9 @@ bool Widget::newMessageAlert(QWidget* currentWindow, bool isActive, bool sound,
|
|||
currentWindow->activateWindow();
|
||||
}
|
||||
|
||||
if (Settings::getInstance().getNotifySound() && sound)
|
||||
bool isBusy = Nexus::getCore()->getStatus() == Status::Busy;
|
||||
|
||||
if (Settings::getInstance().getNotifySound() && sound && !isBusy)
|
||||
Audio::getInstance().playMono16Sound(QStringLiteral(":/audio/notification.pcm"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user