mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Stash context menu
This commit is contained in:
parent
9781239310
commit
818a171374
1 changed files with 4 additions and 0 deletions
|
|
@ -798,6 +798,8 @@ begin
|
|||
end;
|
||||
end;
|
||||
{$ELSE}
|
||||
var
|
||||
contextFiles: TFiles;
|
||||
begin
|
||||
if Files.Count = 0 then
|
||||
begin
|
||||
|
|
@ -808,7 +810,9 @@ begin
|
|||
// Free previous created menu
|
||||
FreeAndNil(ShellContextMenu);
|
||||
// Create new context menu
|
||||
contextFiles:= Files;
|
||||
ShellContextMenu:= TShellContextMenu.Create(nil, Files, Background, UserWishForContextMenu);
|
||||
frmMain.ActiveFrame.FileSource.QueryContextMenu(contextFiles, TPopupMenu(ShellContextMenu));
|
||||
ShellContextMenu.OnClose := CloseEvent;
|
||||
ShellContextMenu.PopUp(X, Y);
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue