prompt user to restart sphaira upon language change
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user