浏览代码

FIX: Restore previous file view mode

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

+ 4 - 0
src/fmain.pas

@@ -4317,6 +4317,10 @@ var
   DefaultView: TFileSourceFields;
 begin
   Result:= True;
+
+  if FileSource.Equals(FileView.FileSource) then
+    Exit;
+
   Page:= TFileViewPage(FileView.NotebookPage);
 
   if Page.Tag > 0 then Exit;