diff --git a/Tella.xcodeproj/project.pbxproj b/Tella.xcodeproj/project.pbxproj index 0e753a73f..45e74eb7f 100644 --- a/Tella.xcodeproj/project.pbxproj +++ b/Tella.xcodeproj/project.pbxproj @@ -2020,7 +2020,7 @@ CODE_SIGN_ENTITLEMENTS = "Tella/Supporting Files/Tella.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_TEAM = 6ZG9T42688; ENABLE_PREVIEWS = YES; @@ -2047,7 +2047,7 @@ CODE_SIGN_ENTITLEMENTS = "Tella/Supporting Files/Tella.entitlements"; CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_TEAM = 6ZG9T42688; ENABLE_PREVIEWS = YES; diff --git a/Tella/Components/ImportFilesProgressView/ImportFilesProgressView.swift b/Tella/Components/ImportFilesProgressView/ImportFilesProgressView.swift index 2b8e4cf3c..04bb1e46d 100644 --- a/Tella/Components/ImportFilesProgressView/ImportFilesProgressView.swift +++ b/Tella/Components/ImportFilesProgressView/ImportFilesProgressView.swift @@ -68,6 +68,7 @@ struct ImportFilesProgressView: View { if isFinishing { DispatchQueue.main.asyncAfter(deadline: .now() + 0.4) { sheetManager.hide() + mainAppModel.vaultManager.clearTmpDirectory() } } } diff --git a/Tella/Scenes/Audio/Recorder/RecordingManager/RecordingAudioManager.swift b/Tella/Scenes/Audio/Recorder/RecordingManager/RecordingAudioManager.swift index df94a2b11..5650d12da 100644 --- a/Tella/Scenes/Audio/Recorder/RecordingManager/RecordingAudioManager.swift +++ b/Tella/Scenes/Audio/Recorder/RecordingManager/RecordingAudioManager.swift @@ -47,6 +47,8 @@ class RecordingAudioManager: AudioRecorderManager, ObservableObject { guard let fileName = self.getFileName() else { return } + self.currentFileName = fileName + do { self.recorder = try AVAudioRecorder(url: fileName, settings: settings) self.recorder.record() diff --git a/Tella/Scenes/Audio/Recorder/Views/RecordView.swift b/Tella/Scenes/Audio/Recorder/Views/RecordView.swift index a86eedaaa..b37af16d8 100644 --- a/Tella/Scenes/Audio/Recorder/Views/RecordView.swift +++ b/Tella/Scenes/Audio/Recorder/Views/RecordView.swift @@ -71,6 +71,9 @@ struct RecordView: View { .alert(isPresented: self.$viewModel.shouldShowSettingsAlert) { getSettingsAlertView() } + .onDisappear { + mainAppModel.vaultManager.clearTmpDirectory() + } } private func getSettingsAlertView() -> Alert {