diff options
author | DLFW <daniel@llin.info> | 2022-01-15 02:49:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 20:49:12 -0500 |
commit | 58946e35d10c58e38841f79ecd6d7cbb269f55eb (patch) | |
tree | 253098302be4156ef08b44ccbdfca34734bcdd52 /src | |
parent | 8bdd74f821344be79692d369c0762bcb85d05661 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/context/app_context.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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 }; |