mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-29 08:39:34 +12:00
[Feature] Show network shared directory with wrong flag super hidden (#271), version 1.2.0.2
This commit is contained in:
parent
76b04a0979
commit
31bae17632
|
@ -371,6 +371,7 @@ namespace SystemTrayMenu.Business
|
|||
if (!worker.CancellationPending)
|
||||
{
|
||||
string[] directories = Array.Empty<string>();
|
||||
bool isSharedDirectory = false;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -380,6 +381,7 @@ namespace SystemTrayMenu.Business
|
|||
}
|
||||
else if (FileLnk.IsNetworkRoot(path))
|
||||
{
|
||||
isSharedDirectory = true;
|
||||
directories = GetDirectoriesInNetworkLocation(path);
|
||||
static string[] GetDirectoriesInNetworkLocation(string networkLocationRootPath)
|
||||
{
|
||||
|
@ -459,7 +461,8 @@ namespace SystemTrayMenu.Business
|
|||
string directory = directoryWithIllegalCharacters.Replace("\x00", string.Empty);
|
||||
|
||||
bool hiddenEntry = false;
|
||||
if (FolderOptions.IsHidden(directory, ref hiddenEntry))
|
||||
if (!isSharedDirectory &&
|
||||
FolderOptions.IsHidden(directory, ref hiddenEntry))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue