Initialize campaign values with first campaign in the list

This commit is contained in:
Raffson 2023-02-26 00:04:36 +01:00
parent 9ffaec6d16
commit f670ccd8a6
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -106,6 +106,7 @@ class NewGameWizard(QtWidgets.QWizard):
self.addPage(self.faction_selection_page) self.addPage(self.faction_selection_page)
self.addPage(GeneratorOptions()) self.addPage(GeneratorOptions())
self.difficulty_page = DifficultyAndAutomationOptions() self.difficulty_page = DifficultyAndAutomationOptions()
self.difficulty_page.set_campaign_values(self.campaigns[0])
# Update difficulty page on campaign select # Update difficulty page on campaign select
self.theater_page.campaign_selected.connect( self.theater_page.campaign_selected.connect(