| 1246 | } |
| 1247 | |
| 1248 | void 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 | |
| 1270 | void MainWindow::onBiomeColorChange() |
| 1271 | { |
nothing calls this directly
no test coverage detected