| 1258 | } |
| 1259 | |
| 1260 | void 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 | |
| 1276 | void MainWindow::on_actionEditInstance_triggered() |
| 1277 | { |
nothing calls this directly
no test coverage detected