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:
parent
9b20c08db3
commit
d7398866c7
1 changed files with 2 additions and 2 deletions
|
@ -215,7 +215,7 @@ QString AddOnsController::addSceneryPath() const
|
|||
SGPath p(path.toStdString());
|
||||
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()) {
|
||||
isValid = true;
|
||||
break;
|
||||
|
@ -228,7 +228,7 @@ QString AddOnsController::addSceneryPath() const
|
|||
mb.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
|
||||
mb.setDefaultButton(QMessageBox::No);
|
||||
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();
|
||||
|
||||
if (mb.result() == QMessageBox::No) {
|
||||
|
|
Loading…
Add table
Reference in a new issue