mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Don't show unavailable context menu items (issue #1564)
(cherry picked from commit 2128ec073e)
This commit is contained in:
parent
e14821b38a
commit
204b057cc7
1 changed files with 4 additions and 0 deletions
|
|
@ -748,6 +748,7 @@ var
|
|||
aFile: TFile = nil;
|
||||
aFiles: TFiles = nil;
|
||||
sPath, sName: String;
|
||||
OperationsTypes: TFileSourceOperationTypes;
|
||||
begin
|
||||
with frmMain do
|
||||
begin
|
||||
|
|
@ -765,6 +766,9 @@ begin
|
|||
FreeAndNil(aFiles);
|
||||
end;
|
||||
end;
|
||||
OperationsTypes:= Panel.FileSource.GetOperationsTypes;
|
||||
mnuContextDelete.Visible:= fsoDelete in OperationsTypes;
|
||||
mnuContextRenameOnly.Visible:= fsoSetFileProperty in OperationsTypes;
|
||||
AMenu.PopUp(X, Y);
|
||||
end;
|
||||
Exit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue