From d966142a67ea99c16c71b1c791478474d37b80fd Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Mon, 29 Jul 2024 19:29:44 -0700 Subject: Actually update the file on drop. Add error message sound effect. --- Hotline/Models/Hotline.swift | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Hotline/Models') 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 -- cgit