mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Call the base class sendMessage when handling messages from native, so every screen can refresh from a language update at any time.
This commit is contained in:
1 parent
a28151437b
commit
db370c1fd3
8 files changed
+27
-23
No files matched your search
@@ -214,9 +214,9 @@ void ControlMappingScreen::CreateViews() {
|
||||
}
|
||||
|
||||
void ControlMappingScreen::sendMessage(const char *message, const char *value) {
|
||||
if (!strcmp(message, "language")) {
|
||||
screenManager()->RecreateAllViews();
|
||||
}
|
||||
// Always call the base class method first to handle the most common messages.
|
||||
UIDialogScreenWithBackground::sendMessage(message, value);
|
||||
|
||||
if (!strcmp(message, "settings")) {
|
||||
UpdateUIState(UISTATE_MENU);
|
||||
screenManager()->push(new GameSettingsScreen(""));
|
||||
|
||||
Reference in new issue
Block a user