FIX: Viewer - enable save action only in the image view mode (fixes #2323)

(cherry picked from commit e7f9679e06)
This commit is contained in:
Alexander Koblov 2025-05-28 21:31:50 +03:00
commit 3fed40edda

View file

@ -1618,8 +1618,9 @@ end;
procedure TfrmViewer.EnableActions(AEnabled: Boolean);
begin
actSave.Enabled:= AEnabled;
actCopyFile.Enabled:= AEnabled;
actSave.Enabled:= AEnabled and bImage;
actSaveAs.Enabled:= AEnabled and bImage;
actMoveFile.Enabled:= AEnabled and (FileList.Count > 1);
actDeleteFile.Enabled:= AEnabled and (FileList.Count > 1);
end;
@ -3578,7 +3579,9 @@ begin
miFullScreen.Visible := (bImage and not bQuickView);
miScreenshot.Visible := (bImage and not bQuickView);
miSave.Visible := bImage;
actSave.Enabled := bImage;
miSaveAs.Visible := bImage;
actSaveAs.Enabled := bImage;
miShowTransparency.Visible := bImage;