mirror of https://gitlab.com/basile.b/dexed.git
recall last folder, not anymore limited to favorites
This commit is contained in:
parent
b0350a849c
commit
a8e327557a
|
@ -144,19 +144,10 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEMiniExplorerWidget.optset_LastFold(aReader: TReader);
|
procedure TCEMiniExplorerWidget.optset_LastFold(aReader: TReader);
|
||||||
var
|
|
||||||
lst: TstringList;
|
|
||||||
begin
|
begin
|
||||||
fLastFold := aReader.ReadString;
|
fLastFold := aReader.ReadString;
|
||||||
if not directoryExists(fLastFold) then exit;
|
if directoryExists(fLastFold) then
|
||||||
//
|
expandPath(fLastFold);
|
||||||
lst := TStringList.Create;
|
|
||||||
try
|
|
||||||
listFiles(lst, fLastFold);
|
|
||||||
fillLstFiles(lst);
|
|
||||||
finally
|
|
||||||
lst.Free;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEMiniExplorerWidget.optget_LastFold(aWriter: TWriter);
|
procedure TCEMiniExplorerWidget.optget_LastFold(aWriter: TWriter);
|
||||||
|
@ -380,6 +371,7 @@ begin
|
||||||
lst := TStringList.Create;
|
lst := TStringList.Create;
|
||||||
try
|
try
|
||||||
pth := PString(Tree.Selected.Data)^;
|
pth := PString(Tree.Selected.Data)^;
|
||||||
|
fLastFold := pth;
|
||||||
listFiles(lst, pth);
|
listFiles(lst, pth);
|
||||||
fillLstFiles(lst);
|
fillLstFiles(lst);
|
||||||
finally
|
finally
|
||||||
|
|
Loading…
Reference in New Issue