[apps] Update the preferences displayed in the title bar view when

changing the language
This commit is contained in:
Émilie Feral
2018-06-06 16:51:32 +02:00
committed by Ecco
parent 9407a86f5f
commit 5d0ef50606
3 changed files with 2 additions and 2 deletions

View File

@@ -41,6 +41,8 @@ void LanguageController::viewWillAppear() {
bool LanguageController::handleEvent(Ion::Events::Event event) {
if (event == Ion::Events::OK || event == Ion::Events::EXE) {
GlobalPreferences::sharedGlobalPreferences()->setLanguage((I18n::Language)(selectedRow()+1));
AppsContainer * myContainer = (AppsContainer * )app()->container();
myContainer->refreshPreferences();
return true;
}
return false;