Ver código fonte

Issue 2331 – After system theme change panel context menus stop working

https://winscp.net/tracker/2331

Source commit: 5ddeed37ea4e3430ca1ef21d50dbed9abe7afc3d
Martin Prikryl 10 meses atrás
pai
commit
621c08c4b1

+ 2 - 0
source/packages/filemng/CustomDriveView.pas

@@ -926,6 +926,8 @@ var
   Point: TPoint;
   PrevAutoPopup: Boolean;
 begin
+  // Not sure what is this exactly for, as without AutoPopup, the inherited WMContextMenu is almost noop.
+  // In general it would be better to override DoContextPopup
   PrevAutoPopup := False;
   try
     if Assigned(PopupMenu) then

+ 0 - 3
source/packages/filemng/DriveView.pas

@@ -1117,9 +1117,6 @@ var
 begin
   inherited;
 
-  if Assigned(PopupMenu) then
-    PopupMenu.Autopopup := False;
-
   FDragDropFilesEx.SourceEffects := [deCopy, deMove, deLink];
   FDragDropFilesEx.TargetEffects := [deCopy, deMove, deLink];