kopia lustrzana https://github.com/corrscope/corrscope
When opening missing file via CLI, show dialog rather than crashing
rodzic
a3cff4cd91
commit
8f2616ef5b
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue