mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Reset the max flight size when changing squadrons.
This commit is contained in:
parent
e0047b1bbc
commit
a404792bd2
@ -223,6 +223,7 @@ class QFlightCreator(QDialog):
|
|||||||
|
|
||||||
def on_squadron_changed(self, index: int) -> None:
|
def on_squadron_changed(self, index: int) -> None:
|
||||||
squadron: Optional[Squadron] = self.squadron_selector.itemData(index)
|
squadron: Optional[Squadron] = self.squadron_selector.itemData(index)
|
||||||
|
self.update_max_size(self.squadron_selector.aircraft_available)
|
||||||
# Clear the roster first so we return the pilots to the pool. This way if we end
|
# Clear the roster first so we return the pilots to the pool. This way if we end
|
||||||
# up repopulating from the same squadron we'll get the same pilots back.
|
# up repopulating from the same squadron we'll get the same pilots back.
|
||||||
self.roster_editor.replace(None)
|
self.roster_editor.replace(None)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user