mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Initialize restore_start_type
This commit is contained in:
parent
9ab1dbab78
commit
d45bba19c8
@ -103,7 +103,7 @@ class QFlightCreator(QDialog):
|
|||||||
# When an off-map spawn overrides the start type to in-flight, we save
|
# When an off-map spawn overrides the start type to in-flight, we save
|
||||||
# the selected type into this value. If a non-off-map spawn is selected
|
# the selected type into this value. If a non-off-map spawn is selected
|
||||||
# we restore the previous choice.
|
# we restore the previous choice.
|
||||||
self.restore_start_type: Optional[str] = None
|
self.restore_start_type = self.game.settings.default_start_type
|
||||||
self.start_type = QComboBox()
|
self.start_type = QComboBox()
|
||||||
for start_type in StartType:
|
for start_type in StartType:
|
||||||
self.start_type.addItem(start_type.value, start_type)
|
self.start_type.addItem(start_type.value, start_type)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user