wip close round/campaign/war + refacto json None
This commit is contained in:
parent
4c8086caf4
commit
6cbb7c6534
26 changed files with 474 additions and 108 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue