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

Method selectionBad

launcher/ui/MainWindow.cpp:2300–2314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2298}
2299
2300void MainWindow::selectionBad()
2301{
2302 // start by reseting everything...
2303 m_selectedInstance = nullptr;
2304
2305 statusBar()->clearMessage();
2306 ui->instanceToolBar->setEnabled(false);
2307 ui->setInstanceActionsEnabled(false);
2308 updateToolsMenu();
2309 ui->renameButton->setText(tr("Rename Instance"));
2310 updateInstanceToolIcon("grass");
2311
2312 // ...and then see if we can enable the previously selected instance
2313 setSelectedInstanceById(APPLICATION->settings()->get("SelectedInstance").toString());
2314}
2315
2316void MainWindow::checkInstancePathForProblems()
2317{

Callers

nothing calls this directly

Calls 6

setEnabledMethod · 0.80
setTextMethod · 0.45
toStringMethod · 0.45
getMethod · 0.45
settingsMethod · 0.45

Tested by

no test coverage detected