MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / globalSettingsClosed

Method globalSettingsClosed

launcher/ui/MainWindow.cpp:1996–2010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1994}
1995
1996void 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
2012void MainWindow::on_actionEditInstNotes_triggered()
2013{

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