mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-01 10:15:21 +02:00
Merge pull request #5503 from unknownbrackets/ui-tweaks
When the language changes, recreate all views
This commit is contained in:
@@ -490,7 +490,7 @@ UI::EventReturn GameSettingsScreen::OnLanguage(UI::EventParams &e) {
|
||||
}
|
||||
|
||||
UI::EventReturn GameSettingsScreen::OnLanguageChange(UI::EventParams &e) {
|
||||
RecreateViews();
|
||||
screenManager()->RecreateAllViews();
|
||||
|
||||
if (host) {
|
||||
host->UpdateUI();
|
||||
|
||||
+2
-2
@@ -162,7 +162,7 @@ void UIScreenWithBackground::sendMessage(const char *message, const char *value)
|
||||
}
|
||||
|
||||
UI::EventReturn UIScreenWithBackground::OnLanguageChange(UI::EventParams &e) {
|
||||
RecreateViews();
|
||||
screenManager()->RecreateAllViews();
|
||||
if (host) {
|
||||
host->UpdateUI();
|
||||
}
|
||||
@@ -171,7 +171,7 @@ UI::EventReturn UIScreenWithBackground::OnLanguageChange(UI::EventParams &e) {
|
||||
}
|
||||
|
||||
UI::EventReturn UIDialogScreenWithBackground::OnLanguageChange(UI::EventParams &e) {
|
||||
RecreateViews();
|
||||
screenManager()->RecreateAllViews();
|
||||
if (host) {
|
||||
host->UpdateUI();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user