Fix file deletion

This commit is contained in:
Christoph Hagen
2025-01-07 14:04:00 +01:00
parent c5a00ef0f8
commit acd0902869
10 changed files with 98 additions and 3 deletions

View File

@@ -51,6 +51,15 @@ final class AudioPlayerSettings: ObservableObject {
german: german.file,
english: english.file)
}
func remove(_ file: FileResource) {
if audioPlayerJsFile == file {
audioPlayerJsFile = nil
}
if audioPlayerCssFile == file {
audioPlayerCssFile = nil
}
}
}
extension AudioPlayerSettings {