From 58946e35d10c58e38841f79ecd6d7cbb269f55eb Mon Sep 17 00:00:00 2001 From: DLFW Date: Sat, 15 Jan 2022 02:49:12 +0100 Subject: Update external preview on geometry change (#126) When the size of the preview area changes, the "preview shown hook" is called to give a chance to update the size and/or position of the preview image. --- src/context/app_context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/context/app_context.rs b/src/context/app_context.rs index 57178ee..79335c2 100644 --- a/src/context/app_context.rs +++ b/src/context/app_context.rs @@ -155,6 +155,7 @@ impl AppContext { Some(new) => { let should_preview = if let Some(old) = &self.preview_area { new.file_preview_path != old.file_preview_path + || new.preview_area != old.preview_area } else { true }; -- cgit v1.2.3