wip close round/campaign/war + refacto json None

This commit is contained in:
Maxime Réaux 2026-02-11 19:22:43 +01:00
parent 4c8086caf4
commit 6cbb7c6534
26 changed files with 474 additions and 108 deletions

View file

@ -42,14 +42,21 @@ class SectorDialog(QDialog):
def get_sector_name(self) -> str:
return self.ui.sectorName.text().strip()
def get_round_id(self) -> str:
return cast(str, self.ui.roundComboBox.currentData())
def get_round_id(self) -> str | None:
text = cast(str, self.ui.roundComboBox.currentData())
return text if text else None
def get_major_id(self) -> str:
return cast(str, self.ui.majorComboBox.currentData())
def get_major_id(self) -> str | None:
text = cast(str, self.ui.majorComboBox.currentData())
return text if text else None
def get_minor_id(self) -> str:
return cast(str, self.ui.minorComboBox.currentData())
def get_minor_id(self) -> str | None:
text = cast(str, self.ui.minorComboBox.currentData())
return text if text else None
def get_influence_id(self) -> str:
return cast(str, self.ui.influenceComboBox.currentData())
def get_influence_id(self) -> str | None:
text = cast(str, self.ui.influenceComboBox.currentData())
return text if text else None
# TODO fix mission + description missing