prompt user to restart sphaira upon language change

This commit is contained in:
ITotalJustice
2025-01-07 02:38:27 +00:00
parent 3a3b8008a1
commit ca1b31329d

View File

@@ -659,6 +659,15 @@ void App::SetLanguage(long index) {
if (App::GetLanguage() != index) {
g_app->m_language.Set(index);
on_i18n_change();
App::Push(std::make_shared<ui::OptionBox>(
"Restart Sphaira?"_i18n,
"Back"_i18n, "Restart"_i18n, 1, [](auto op_index){
if (op_index && *op_index) {
App::ExitRestart();
}
}
));
}
}