| 1994 | } |
| 1995 | |
| 1996 | void MainWindow::globalSettingsClosed() |
| 1997 | { |
| 1998 | // FIXME: quick HACK to make this work. improve, optimize. |
| 1999 | APPLICATION->instances()->loadList(); |
| 2000 | proxymodel->invalidate(); |
| 2001 | proxymodel->sort(0); |
| 2002 | updateMainToolBar(); |
| 2003 | updateToolsMenu(); |
| 2004 | updateStatusCenter(); |
| 2005 | updateCat(); |
| 2006 | // This needs to be done to prevent UI elements disappearing in the event the config is changed |
| 2007 | // but PolyMC exits abnormally, causing the window state to never be saved: |
| 2008 | APPLICATION->settings()->set("MainWindowState", saveState().toBase64()); |
| 2009 | update(); |
| 2010 | } |
| 2011 | |
| 2012 | void MainWindow::on_actionEditInstNotes_triggered() |
| 2013 | { |
nothing calls this directly
no test coverage detected