示例#1
0
int main_gui(MultiMC &app)
{
	// show main window
	MainWindow mainWin;
	mainWin.show();
	mainWin.checkSetDefaultJava();
	return app.exec();
}
示例#2
0
int main_gui(MultiMC &app)
{
	// show main window
	MainWindow mainWin;
	mainWin.restoreState(QByteArray::fromBase64(MMC->settings()->get("MainWindowState").toByteArray()));
	mainWin.restoreGeometry(QByteArray::fromBase64(MMC->settings()->get("MainWindowGeometry").toByteArray()));
	mainWin.show();
	mainWin.checkMigrateLegacyAssets();
	mainWin.checkSetDefaultJava();
	return app.exec();
}