Update targets only. (#2983)

This commit is contained in:
Fabien-B
2023-02-11 17:55:41 +01:00
committed by GitHub
parent 5cad3f1390
commit 4aedbf1590
+6 -1
View File
@@ -84,7 +84,12 @@ class PprzCenter(QMainWindow, Ui_SupervisionWindow):
def handle_ac_changed(self, ac_name):
ac = self.conf[ac_name]
if ac is not None:
self.handle_ac_edited(ac) # update AC
# self.handle_ac_edited(ac) # update AC ?
try:
ac.update_targets()
self.clear_error()
except ConfError as e:
self.handle_error(e.__str__())
self.change_ac(ac)
def handle_remove_ac(self, ac: Aircraft):