add extra clean ups just to be sure

This commit is contained in:
leminlimez committed 2025-06-03 20:12:50 -04:00
1 parent b15c6854f2
commit 42176a15a4
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -72,6 +72,7 @@ struct ContentView: View {
do {
try PosterBoardManager.applyTendies(selectedTendies.wrappedValue, appHash: pbHash)
selectedTendies.wrappedValue.removeAll()
SymHandler.cleanup() // just to be extra sure
try? FileManager.default.removeItem(at: PosterBoardManager.getTendiesStoreURL())
Haptic.shared.notify(.success)
UIApplication.shared.dismissAlert(animated: false)
@@ -84,6 +85,7 @@ struct ContentView: View {
}, noCancel: true)
} catch {
Haptic.shared.notify(.error)
SymHandler.cleanup()
UIApplication.shared.dismissAlert(animated: false)
UIApplication.shared.alert(body: error.localizedDescription)
}