Skip to content

Commit

Permalink
final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Constantin Clerc committed Feb 22, 2024
1 parent b89b73b commit 7f35ff8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Geranium/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ struct SettingsView: View {
exitGracefully()
}, noCancel: true)
}
Toggle(isOn: $appSettings.tmpClean) {
Text("Clean tmp folder (Disable this if on iOS 15!)")
Toggle(isOn: Binding<Bool>(
get: { !appSettings.tmpClean },
set: { appSettings.tmpClean = !$0 }
)) {
Text("Safe Clean Measures (Enable this if on iOS 15!)")
}
.onChange(of: appSettings.tmpClean) { newValue in
UIApplication.shared.confirmAlert(title: "You need to quit the app to apply changes.", body: "You might want to open it back.", onOK: {
Expand Down
24 changes: 21 additions & 3 deletions Geranium/Translations/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -1712,9 +1712,6 @@
}
}
}
},
"Clean tmp folder (Disable this if on iOS 15!)" : {

},
"Cleaner" : {
"localizations" : {
Expand Down Expand Up @@ -6110,6 +6107,27 @@
}
}
},
"Safe Clean Measures (Disable this if on iOS 15!)" : {
"extractionState" : "stale",
"localizations" : {
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Mesures de nettoyage sécurisé"
}
}
}
},
"Safe Clean Measures (Enable this if on iOS 15!)" : {
"localizations" : {
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Mesures de nettoyage sécurisé (Activez cela si vous êtes sur iOS 15!)"
}
}
}
},
"Save" : {
"localizations" : {
"es" : {
Expand Down

0 comments on commit 7f35ff8

Please sign in to comment.