quality pass 3: preview cleanup, gif filter hoist, config logging
- startOver clears previewPath/trimPreviewPath and resets gif settings - startOver resets format/fps/dither to config defaults - Main onMount wraps getConfig in try/catch - unify DownloadProgress/UpdateDownloadProgress into single type - default_output_path borrows config instead of cloning - encode_gif_pass filter prefixes computed once outside retry loop - config backup path included in warning log - capture ffmpeg stderr logged at debug level instead of error - is_newer comment notes pre-release version handling - Picker hover debounced to ~33ms - Picker emits picker-cancel on unmount
This commit is contained in:
@@ -148,9 +148,8 @@ impl Config {
|
||||
match toml::from_str::<Self>(&raw) {
|
||||
Ok(cfg) => Ok(cfg),
|
||||
Err(e) => {
|
||||
// Config is corrupt - back it up and return defaults
|
||||
tracing::warn!("config.toml is corrupt ({e}), backing up and using defaults");
|
||||
let backup = path.with_extension("toml.bak");
|
||||
tracing::warn!("config.toml is corrupt ({}), backing up to {:?} and using defaults", e, backup);
|
||||
let _ = std::fs::copy(path, &backup);
|
||||
let cfg = Self::default();
|
||||
cfg.save(path)?;
|
||||
|
||||
Reference in New Issue
Block a user