MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / onUpdateMapConfig

Method onUpdateMapConfig

src/mainwindow.cpp:1248–1268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1246}
1247
1248void MainWindow::onUpdateMapConfig()
1249{
1250 MapConfig old = mconfig;
1251 mconfig.load();
1252
1253 if (!old.sameMapOpts(mconfig))
1254 {
1255 for (int opt = 0; opt < D_STRUCT_NUM; opt++)
1256 {
1257 if (QAction *act = saction[opt])
1258 act->setVisible(mconfig.enabled(opt));
1259 }
1260 if (getMapView()->world)
1261 {
1262 getMapView()->deleteWorld();
1263 updateMapSeed();
1264 }
1265 }
1266 actzoom[0]->setVisible(mconfig.zoomEnabled);
1267 actzoom[1]->setVisible(mconfig.zoomEnabled);
1268}
1269
1270void MainWindow::onBiomeColorChange()
1271{

Callers

nothing calls this directly

Calls 4

sameMapOptsMethod · 0.80
enabledMethod · 0.80
deleteWorldMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected