Explorar o código

FIX: Restore previous file view mode

Alexander Koblov %!s(int64=3) %!d(string=hai) anos
pai
achega
987bcfa124
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;