Fix settings reacting to language change

This commit is contained in:
Christoph Hagen
2025-02-05 21:21:41 +01:00
parent d556a51228
commit 41171c31db
8 changed files with 70 additions and 49 deletions

View File

@ -211,11 +211,9 @@ struct MainView: App {
switch content.saveState {
case .storageNotInitialized:
showInitialSheet()
case .isSaved:
case .isSaved, .needsSave:
content.saveUnconditionally()
case .needsSave:
content.saveUnconditionally()
case .failedToSave:
case .failedToSave, .savingPausedDueToLoadErrors:
showStorageErrorSheet = true
}
}