mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix replacing unassigned pilot slots.
This commit is contained in:
parent
1fe3451120
commit
6e41c36a44
@ -50,8 +50,8 @@ class PilotSelector(QComboBox):
|
||||
self.addItem(self.text_for(pilot), pilot)
|
||||
if current_pilot is None:
|
||||
self.setCurrentText("Unassigned")
|
||||
return
|
||||
self.setCurrentText(self.text_for(current_pilot))
|
||||
else:
|
||||
self.setCurrentText(self.text_for(current_pilot))
|
||||
self.currentIndexChanged.connect(self.replace_pilot)
|
||||
|
||||
def rebuild(self) -> None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user