aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Models
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2024-07-29 19:29:44 -0700
committerDustin Mierau <dustin@mierau.me>2024-07-29 19:29:44 -0700
commitd966142a67ea99c16c71b1c791478474d37b80fd (patch)
tree7158a063caefc7150d0de1ae52d51e060e8d6344 /Hotline/Models
parentc6996c3ac262616198e94197d1c6b310d44508ee (diff)
Actually update the file on drop. Add error message sound effect.
Diffstat (limited to 'Hotline/Models')
-rw-r--r--Hotline/Models/Hotline.swift5
1 files changed, 5 insertions, 0 deletions
diff --git a/Hotline/Models/Hotline.swift b/Hotline/Models/Hotline.swift
index 30d2ef5..9ea29c5 100644
--- a/Hotline/Models/Hotline.swift
+++ b/Hotline/Models/Hotline.swift
@@ -909,6 +909,11 @@ class Hotline: Equatable, HotlineClientDelegate, HotlineFileDownloadClientDelega
self.errorDisplayed = (message != nil) // Show error if there is a message to display.
self.errorMessage = message
+
+ if self.errorDisplayed,
+ Prefs.shared.playSounds && Prefs.shared.playErrorSound {
+ SoundEffectPlayer.shared.playSoundEffect(.error)
+ }
}
// MARK: - Hotline Transfer Delegate