mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Allow sound-without-toast again on macOS/Linux.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user