Do not allow adding flights after package start.

https://github.com/dcs-liberation/dcs_liberation/issues/1680
This commit is contained in:
Dan Albert 2023-02-06 00:38:07 -08:00
parent 7b35a749e2
commit 364742a98b
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Saves from 6.x are not compatible with 7.0.
* **[Engine]** Support for DCS 2.8.2.35632. * **[Engine]** Support for DCS 2.8.2.35632.
* **[Engine]** Saved games are now a zip file of save assets for easier bug reporting. The new extension is .liberation.zip. Drag and drop that file into bug reports. * **[Engine]** Saved games are now a zip file of save assets for easier bug reporting. The new extension is .liberation.zip. Drag and drop that file into bug reports.
* **[Flight Planning]** Package TOT and composition can be modified after advancing time in Liberation.
* **[Mission Generation]** Units on the front line are now hidden on MFDs. * **[Mission Generation]** Units on the front line are now hidden on MFDs.
* **[Modding]** Updated Community A-4E-C mod version support to 2.1.0 release. * **[Modding]** Updated Community A-4E-C mod version support to 2.1.0 release.
* **[Modding]** Add support for VSN F-4B and F-4C mod. * **[Modding]** Add support for VSN F-4B and F-4C mod.

View File

@ -115,6 +115,9 @@ class QPackageDialog(QDialog):
self.add_flight_button = QPushButton("Add Flight") self.add_flight_button = QPushButton("Add Flight")
self.add_flight_button.clicked.connect(self.on_add_flight) self.add_flight_button.clicked.connect(self.on_add_flight)
self.add_flight_button.setEnabled(
self.package_model.package.all_flights_waiting_for_start()
)
self.button_layout.addWidget(self.add_flight_button) self.button_layout.addWidget(self.add_flight_button)
self.delete_flight_button = QPushButton("Delete Selected") self.delete_flight_button = QPushButton("Delete Selected")