Fix file deletion
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user