Move Reset Application to a reaction
The code that do it is here
Also it would be nice to also clear the user settings. This could be done as follow:
// Save the UserSettings
auto userSetting = QString::fromStdString(vtkInitializationHelper::GetUserSettingsFilePath());
QFile file(userSetting);
file.remove();