Skip to content

Commit

Permalink
Fixed: Using View|Show Images (or button) showed the Editor content a…
Browse files Browse the repository at this point in the history
…t 100% zoom...

.. ignoring the custom zoom that could be applied. Selecting another node established the correct zoom
  • Loading branch information
dpradov committed Jan 27, 2024
1 parent 7c45187 commit 517c835
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions kn_Main.pas
Expand Up @@ -7531,18 +7531,25 @@ procedure TForm_Main.MMShowImagesClick(Sender: TObject);
ForceMode:= false;
Show:= not MMShowImages.Checked;

if CtrlDown then begin
if ImagesManager.ImagesMode = imImage then begin
ActiveNote.ReloadImagesOnEditor;
exit;
end
else begin
Show:= false;
ForceMode:= true;
try
if CtrlDown then begin
if ImagesManager.ImagesMode = imImage then begin
ActiveNote.ReloadImagesOnEditor;
exit;
end
else begin
Show:= false;
ForceMode:= true;
end;
end;

ShowImages (Show, ForceMode);

finally
if _LastZoomValue <> 100 then
SetEditorZoom(ActiveNote.Editor, _LastZoomValue, '' );
end;

ShowImages (Show, ForceMode);
end;


Expand Down Expand Up @@ -7589,6 +7596,8 @@ procedure TForm_Main.TB_ImagesClick(Sender: TObject);
else
ShowImages (TB_Images.Down, False);

if _LastZoomValue <> 100 then
SetEditorZoom(ActiveNote.Editor, _LastZoomValue, '' );
end;


Expand Down

0 comments on commit 517c835

Please sign in to comment.