浏览代码

FIX: Restore focus when open virtual file system list

Alexander Koblov 2 年之前
父节点
当前提交
624872ea0d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/umaincommands.pas

+ 3 - 0
src/umaincommands.pas

@@ -704,7 +704,10 @@ var
 begin
   FileSource:= TVfsFileSource.Create(gWFXPlugins);
   if Assigned(FileSource) then
+  begin
     Panel.AddFileSource(FileSource, FileSource.GetRootDir);
+    frmMain.ActiveFrame.SetFocus;
+  end;
 end;
 
 procedure TMainCommands.DoPanelsSplitterPerPos(SplitPos: Integer);