Skip to content

Commit

Permalink
save custom args
Browse files Browse the repository at this point in the history
  • Loading branch information
dsymbol committed Jun 6, 2024
1 parent 5f90ff6 commit 2f358a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def conf(self):
"metadata": False,
"subtitles": False,
"thumbnail": False,
"custom_args": ""
}
settings = load_json(ROOT / "conf.json", d)

Expand All @@ -190,6 +191,7 @@ def conf(self):
self.cb_metadata.setChecked(settings["metadata"])
self.cb_subtitles.setChecked(settings["subtitles"])
self.cb_thumbnail.setChecked(settings["thumbnail"])
self.le_cargs.setText(settings["custom_args"])

def closeEvent(self, event):
d = {
Expand All @@ -199,6 +201,7 @@ def closeEvent(self, event):
"metadata": self.cb_metadata.isChecked(),
"subtitles": self.cb_subtitles.isChecked(),
"thumbnail": self.cb_thumbnail.isChecked(),
"custom_args": self.le_cargs.text()
}
save_json(ROOT / "conf.json", d)
event.accept()
Expand Down

0 comments on commit 2f358a0

Please sign in to comment.