thanks to latched variable mechanism
people can chose to not restart immediately
message << ( *i ) << '\n';
}
message << ( *i ) << '\n';
}
- ui::alert( MainFrame_getWindow(), message.c_str() );
+ message << "\nRestart now?";
+
+ auto ret = ui::alert( MainFrame_getWindow(), message.c_str(), "Restart " RADIANT_NAME "?", ui::alert_type::YESNO, ui::alert_icon::Question );
+
g_restart_required.clear();
g_restart_required.clear();
+ if ( ret == ui::alert_response::YES ) {
+ Radiant_Restart();
+ }