mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Allow sound-without-toast again on macOS/Linux.
This commit is contained in:
parent
5e2eda6af3
commit
691a0acdab
2 changed files with 7 additions and 2 deletions
|
@ -968,7 +968,9 @@ bool Manager::doSkipToast() const {
|
|||
}
|
||||
|
||||
void Manager::doMaybePlaySound(Fn<void()> playSound) {
|
||||
if (UseGNotification() || !HasCapability("sound")) {
|
||||
if (UseGNotification()
|
||||
|| !HasCapability("sound")
|
||||
|| !Core::App().settings().desktopNotify()) {
|
||||
_private->invokeIfNotInhibited(std::move(playSound));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -532,7 +532,10 @@ bool Manager::doSkipToast() const {
|
|||
}
|
||||
|
||||
void Manager::doMaybePlaySound(Fn<void()> playSound) {
|
||||
// Play through native notification system.
|
||||
// Play through native notification system if toasts are enabled.
|
||||
if (!Core::App().settings().desktopNotify()) {
|
||||
playSound();
|
||||
}
|
||||
}
|
||||
|
||||
void Manager::doMaybeFlashBounce(Fn<void()> flashBounce) {
|
||||
|
|
Loading…
Add table
Reference in a new issue