mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:19:36 +02:00
ShellTreeView: comment out some redundant code.
git-svn-id: trunk@47687 -
This commit is contained in:
parent
81193487b6
commit
2f6091443d
@ -560,10 +560,11 @@ begin
|
|||||||
IsValidDirectory := (DirInfo.Name <> '.') and (DirInfo.Name <> '..');
|
IsValidDirectory := (DirInfo.Name <> '.') and (DirInfo.Name <> '..');
|
||||||
|
|
||||||
IsHidden := (DirInfo.Attr and faHidden = faHidden);
|
IsHidden := (DirInfo.Attr and faHidden = faHidden);
|
||||||
{$IFDEF Unix}
|
//LinuxToWinAttr already does this in FF/FN
|
||||||
if (DirInfo.Name<>'') and (DirInfo.Name[1]='.') then
|
//{$IFDEF Unix}
|
||||||
IsHidden:=true;
|
//if (DirInfo.Name<>'') and (DirInfo.Name[1]='.') then
|
||||||
{$ENDIF}
|
// IsHidden:=true;
|
||||||
|
//{$ENDIF}
|
||||||
|
|
||||||
// First check if we show hidden files
|
// First check if we show hidden files
|
||||||
if IsHidden then AddFile := (otHidden in AObjectTypes)
|
if IsHidden then AddFile := (otHidden in AObjectTypes)
|
||||||
@ -676,10 +677,11 @@ var
|
|||||||
(SR.Name <> '..')) then
|
(SR.Name <> '..')) then
|
||||||
begin
|
begin
|
||||||
IsHidden := ((Attr and faHidden) > 0);
|
IsHidden := ((Attr and faHidden) > 0);
|
||||||
{$IFDEF Unix}
|
//LinuxToWinAttr already does this in FF/FN
|
||||||
if (SR.Name<>'') and (SR.Name[1]='.') then
|
//{$IFDEF Unix}
|
||||||
IsHidden := True;
|
//if (SR.Name<>'') and (SR.Name[1]='.') then
|
||||||
{$ENDIF}
|
// IsHidden := True;
|
||||||
|
//{$ENDIF}
|
||||||
if not (IsHidden and (not ((otHidden in fObjectTypes)))) then
|
if not (IsHidden and (not ((otHidden in fObjectTypes)))) then
|
||||||
begin
|
begin
|
||||||
Result := True;
|
Result := True;
|
||||||
|
Loading…
Reference in New Issue
Block a user