diff --git a/src/graphics/graphics_task.rs b/src/graphics/graphics_task.rs index 46d0013..d319c44 100644 --- a/src/graphics/graphics_task.rs +++ b/src/graphics/graphics_task.rs @@ -108,11 +108,10 @@ impl GraphicsTask { blink_color: Color, ) { private.last_frame_height = frame.size().height; - let scroll = if private.auto_scroll { - (Self::max_main_axis(&private), private.scroll.1) - } else { - private.scroll - }; + if private.auto_scroll { + private.scroll.0 = Self::max_main_axis(&private); + } + let scroll = private.scroll; let (coll, coll_size) = ( private.history.range(scroll.0 as usize..).filter(|msg| { diff --git a/src/plugin/engine.rs b/src/plugin/engine.rs index 8548dab..3dad91f 100644 --- a/src/plugin/engine.rs +++ b/src/plugin/engine.rs @@ -141,10 +141,7 @@ impl PluginEngine { continue 'plugin_engine_loop; } - let Ok(filepath) = PathBuf::from_str(&filepath) else { - error!(private.logger, "Invalid filepath {}", filepath); - continue 'plugin_engine_loop; - }; + let Ok(filepath) = PathBuf::from_str(&filepath); let plugin_name = Arc::new(plugin_name);