mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-29 19:51:08 +00:00
Composer lang: Use reply / quote lang and latest recently used language as default
This commit is contained in:
parent
d2c58482f0
commit
87ef2f2a39
2 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ struct StatusEditorAccessoryView: View {
|
||||||
customEmojisSheet
|
customEmojisSheet
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
viewModel.setInitialLanguageSelection(preference: preferences.serverPreferences?.postLanguage)
|
viewModel.setInitialLanguageSelection(preference: preferences.recentlyUsedLanguages.first ?? preferences.serverPreferences?.postLanguage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ public class StatusEditorViewModel: NSObject, ObservableObject {
|
||||||
|
|
||||||
func setInitialLanguageSelection(preference: String?) {
|
func setInitialLanguageSelection(preference: String?) {
|
||||||
switch mode {
|
switch mode {
|
||||||
case let .edit(status):
|
case let .edit(status), let .replyTo(status), let .quote(status):
|
||||||
selectedLanguage = status.language
|
selectedLanguage = status.language
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue