mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Set last modification timestamp when loading X-Plane models
This feature was already implemented for MS Flight Simulator model loaders and missing in the X-Plane model loader.
This commit is contained in:
@@ -171,6 +171,7 @@ namespace BlackMisc
|
||||
model.setModelType(CAircraftModel::TypeOwnSimulatorModel);
|
||||
model.setSimulator(this->getSimulator());
|
||||
model.setFileName(aircraftIt.filePath());
|
||||
model.setUtcTimestamp(aircraftIt.fileInfo().lastModified());
|
||||
model.setModelString(modelString);
|
||||
|
||||
QFile file(aircraftIt.filePath());
|
||||
@@ -263,6 +264,7 @@ namespace BlackMisc
|
||||
|
||||
CAircraftModel model(plane.getModelName(), CAircraftModel::TypeOwnSimulatorModel);
|
||||
model.setFileName(plane.filePath);
|
||||
model.setUtcTimestamp(QFileInfo(plane.filePath).lastModified());
|
||||
|
||||
CAircraftIcaoCode icao(plane.icao);
|
||||
model.setAircraftIcaoCode(icao);
|
||||
|
||||
Reference in New Issue
Block a user