When opening missing file via CLI, show dialog rather than crashing

cli-missing-file
nyanpasu64 2024-11-26 22:12:07 -08:00
rodzic a3cff4cd91
commit 8f2616ef5b
2 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -11,6 +11,10 @@
- Encode audio using libopus instead of aac (#487)
- Fix loss of volume when using a mono track as master audio (#488)
### Changelog
- When opening missing file via CLI, show dialog rather than crashing (#499)
## 0.10.1
### Changelog

Wyświetl plik

@ -390,13 +390,12 @@ class MainWindow(qw.QMainWindow, Ui_MainWindow):
if self.model is None:
self.load_cfg(template_config(), None)
assert cfg_path.is_file()
self.pref.file_dir = str(cfg_path.parent.resolve())
# Raises YAML structural exceptions
cfg = yaml.load(cfg_path)
try:
# Raises YAML structural exceptions
cfg = yaml.load(cfg_path)
# Raises color getter exceptions
self.load_cfg(cfg, cfg_path)
except Exception as e: