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

Method updateInstanceToolIcon

launcher/ui/MainWindow.cpp:1850–1856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1848}
1849
1850void MainWindow::updateInstanceToolIcon(QString new_icon)
1851{
1852 m_currentInstIcon = new_icon;
1853 auto icon = APPLICATION->icons()->getIcon(m_currentInstIcon);
1854 ui->actionChangeInstIcon->setIcon(icon);
1855 ui->changeIconButton->setIcon(icon);
1856}
1857
1858void MainWindow::setSelectedInstanceById(const QString &id)
1859{

Callers

nothing calls this directly

Calls 3

getIconMethod · 0.80
iconsMethod · 0.80
setIconMethod · 0.45

Tested by

no test coverage detected