mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Load next file then ListLoadNext not implemented
This commit is contained in:
parent
bc66d898b1
commit
94a577bfd7
2 changed files with 14 additions and 9 deletions
|
|
@ -397,9 +397,12 @@ begin
|
|||
I:= 0;
|
||||
|
||||
if bPlugin then
|
||||
WlxPlugins.GetWlxModule(ActivePlugin).CallListLoadNext(pnlLister.Handle, FileList[I], 0)
|
||||
else
|
||||
LoadFile(I);
|
||||
begin
|
||||
if WlxPlugins.GetWlxModule(ActivePlugin).CallListLoadNext(pnlLister.Handle, FileList[I], 0) <> LISTPLUGIN_ERROR then
|
||||
Exit;
|
||||
end;
|
||||
|
||||
LoadFile(I);
|
||||
end;
|
||||
|
||||
procedure TfrmViewer.miPrevClick(Sender: TObject);
|
||||
|
|
@ -411,9 +414,12 @@ begin
|
|||
I:= FileList.Count - 1;
|
||||
|
||||
if bPlugin then
|
||||
WlxPlugins.GetWlxModule(ActivePlugin).CallListLoadNext(pnlLister.Handle, FileList[I], 0)
|
||||
else
|
||||
LoadFile(I);
|
||||
begin
|
||||
if WlxPlugins.GetWlxModule(ActivePlugin).CallListLoadNext(pnlLister.Handle, FileList[I], 0) <> LISTPLUGIN_ERROR then
|
||||
Exit;
|
||||
end;
|
||||
|
||||
LoadFile(I);
|
||||
end;
|
||||
|
||||
procedure TfrmViewer.miSavePosClick(Sender: TObject);
|
||||
|
|
|
|||
|
|
@ -295,9 +295,8 @@ begin
|
|||
if Assigned(ListLoadNextW) then
|
||||
Result:= ListLoadNextW(ParentWin, FPluginWindow, PWideChar(UTF8Decode(FileToLoad)), ShowFlags)
|
||||
else if Assigned(ListLoadNext) then
|
||||
Result:= ListLoadNext(ParentWin, FPluginWindow, PAnsiChar(UTF8ToSys(FileToLoad)), ShowFlags);
|
||||
|
||||
//else Result:=LISTPLUGIN_ERROR;
|
||||
Result:= ListLoadNext(ParentWin, FPluginWindow, PAnsiChar(UTF8ToSys(FileToLoad)), ShowFlags)
|
||||
else Result:= LISTPLUGIN_ERROR;
|
||||
end;
|
||||
|
||||
procedure TWLXModule.CallListCloseWindow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue