drop the frame timing probe, keep click highlights in frame
This commit is contained in:
@@ -22,7 +22,7 @@ use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, EnvFilte
|
||||
use crate::bootstrap::FfmpegStatus;
|
||||
use crate::config::{Config, Format, GifBudgetMode, GifDither};
|
||||
|
||||
fn lock<T>(m: &std::sync::Mutex<T>) -> std::sync::MutexGuard<'_, T> {
|
||||
fn lock<T>(m: &Mutex<T>) -> std::sync::MutexGuard<'_, T> {
|
||||
m.lock().unwrap_or_else(|e| {
|
||||
tracing::warn!("mutex poisoned, recovering");
|
||||
e.into_inner()
|
||||
@@ -918,7 +918,7 @@ fn render_preview(
|
||||
let (w, _) = encode::gif_params(&budget, clip.width, clip.height);
|
||||
w
|
||||
} else {
|
||||
clip.width.min(1280).max(160)
|
||||
clip.width.clamp(160, 1280)
|
||||
};
|
||||
|
||||
let preview_path = temp_dir(&state.app_dir).join("preview.png");
|
||||
@@ -1700,7 +1700,7 @@ fn read_log_tail(log_dir: &Path) -> String {
|
||||
}
|
||||
if let Ok(meta) = entry.metadata() {
|
||||
if let Ok(mtime) = meta.modified() {
|
||||
if newest.as_ref().map_or(true, |(t, _)| mtime > *t) {
|
||||
if newest.as_ref().is_none_or(|(t, _)| mtime > *t) {
|
||||
newest = Some((mtime, entry.path()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user