mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix plugin-option exception on new-game
https://discord.com/channels/1015931619187621999/1352641851374571582
This commit is contained in:
parent
3610062976
commit
0e0f1ef315
@ -585,8 +585,9 @@ class QSettingsWidget(QtWidgets.QWizardPage, SettingsContainer):
|
||||
default_zip_path = sd / "Default.zip"
|
||||
if default_zip_path.exists():
|
||||
with zipfile.ZipFile(default_zip_path, "r") as zf:
|
||||
filename = "Default.json"
|
||||
if filename in zf.namelist():
|
||||
filename = [name for name in zf.namelist() if name.lower() == "default.json"]
|
||||
if filename:
|
||||
filename = filename[0]
|
||||
settings_data = json.loads(
|
||||
zf.read(filename).decode("utf-8"),
|
||||
object_hook=self.settings.obj_hook,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user