MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / globalSettingsClosed

Method globalSettingsClosed

launcher/ui/MainWindow.cpp:1260–1274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1258}
1259
1260void MainWindow::globalSettingsClosed()
1261{
1262 // FIXME: quick HACK to make this work. improve, optimize.
1263 APPLICATION->instances()->loadList();
1264 proxymodel->invalidate();
1265 proxymodel->sort(0);
1266 updateMainToolBar();
1267 updateLaunchButton();
1268 updateThemeMenu();
1269 updateStatusCenter();
1270 // This needs to be done to prevent UI elements disappearing in the event the config is changed
1271 // but Prism Launcher exits abnormally, causing the window state to never be saved:
1272 APPLICATION->settings()->set("MainWindowState", saveState().toBase64());
1273 update();
1274}
1275
1276void MainWindow::on_actionEditInstance_triggered()
1277{

Callers

nothing calls this directly

Calls 5

instancesMethod · 0.80
invalidateMethod · 0.80
loadListMethod · 0.45
setMethod · 0.45
settingsMethod · 0.45

Tested by

no test coverage detected