Allow sound-without-toast again on macOS/Linux.

This commit is contained in:
John Preston 2025-01-24 22:23:21 +04:00
parent 5e2eda6af3
commit 691a0acdab
2 changed files with 7 additions and 2 deletions

View file

@ -968,7 +968,9 @@ bool Manager::doSkipToast() const {
} }
void Manager::doMaybePlaySound(Fn<void()> playSound) { void Manager::doMaybePlaySound(Fn<void()> playSound) {
if (UseGNotification() || !HasCapability("sound")) { if (UseGNotification()
|| !HasCapability("sound")
|| !Core::App().settings().desktopNotify()) {
_private->invokeIfNotInhibited(std::move(playSound)); _private->invokeIfNotInhibited(std::move(playSound));
} }
} }

View file

@ -532,7 +532,10 @@ bool Manager::doSkipToast() const {
} }
void Manager::doMaybePlaySound(Fn<void()> playSound) { 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) { void Manager::doMaybeFlashBounce(Fn<void()> flashBounce) {