1
0
Fork 0

Launcher: allow ‘Airports’ when adding a scenery path

Adjust the warning message to allow for ‘Airports-only’ scenery paths
to be added.
This commit is contained in:
James Turner 2020-04-13 09:35:52 +01:00
parent 9b20c08db3
commit d7398866c7

View file

@ -215,7 +215,7 @@ QString AddOnsController::addSceneryPath() const
SGPath p(path.toStdString()); SGPath p(path.toStdString());
bool isValid = false; bool isValid = false;
for (const auto& dir: {"Objects", "Terrain", "Buildings", "Roads", "Pylons", "NavData"}) { for (const auto& dir: {"Objects", "Terrain", "Buildings", "Roads", "Pylons", "NavData", "Airports"}) {
if ((p / dir).exists()) { if ((p / dir).exists()) {
isValid = true; isValid = true;
break; break;
@ -228,7 +228,7 @@ QString AddOnsController::addSceneryPath() const
mb.setStandardButtons(QMessageBox::Yes | QMessageBox::No); mb.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
mb.setDefaultButton(QMessageBox::No); mb.setDefaultButton(QMessageBox::No);
mb.setInformativeText(tr("Added scenery should contain at least one of the following " mb.setInformativeText(tr("Added scenery should contain at least one of the following "
"folders: Objects, Terrain, Buildings, Roads, Pylons, NavData.")); "folders: Objects, Terrain, Buildings, Roads, Pylons, NavData, Airports."));
mb.exec(); mb.exec();
if (mb.result() == QMessageBox::No) { if (mb.result() == QMessageBox::No) {