mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-26 18:11:00 +12:00
#80, version 0.9.2.20
This commit is contained in:
parent
3f94ea0849
commit
ff24ee72c9
|
@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.9.2.19")]
|
||||
[assembly: AssemblyFileVersion("0.9.2.19")]
|
||||
[assembly: AssemblyVersion("0.9.2.20")]
|
||||
[assembly: AssemblyFileVersion("0.9.2.20")]
|
||||
|
|
|
@ -56,15 +56,18 @@ namespace SystemTrayMenu.Utilities
|
|||
internal static bool IsHidden(string path, ref bool hiddenEntry)
|
||||
{
|
||||
bool isDirectoryToHide = false;
|
||||
|
||||
FileAttributes attributes = File.GetAttributes(path);
|
||||
hiddenEntry = attributes.HasFlag(FileAttributes.Hidden);
|
||||
bool systemEntry = attributes.HasFlag(
|
||||
FileAttributes.Hidden | FileAttributes.System);
|
||||
if ((hideHiddenEntries && hiddenEntry) ||
|
||||
(hideSystemEntries && systemEntry))
|
||||
#warning #80
|
||||
if (path.Length < 260)
|
||||
{
|
||||
isDirectoryToHide = true;
|
||||
FileAttributes attributes = File.GetAttributes(path);
|
||||
hiddenEntry = attributes.HasFlag(FileAttributes.Hidden);
|
||||
bool systemEntry = attributes.HasFlag(
|
||||
FileAttributes.Hidden | FileAttributes.System);
|
||||
if ((hideHiddenEntries && hiddenEntry) ||
|
||||
(hideSystemEntries && systemEntry))
|
||||
{
|
||||
isDirectoryToHide = true;
|
||||
}
|
||||
}
|
||||
|
||||
return isDirectoryToHide;
|
||||
|
|
|
@ -23,8 +23,7 @@ namespace SystemTrayMenu.Utilities
|
|||
|
||||
internal static void Warn(string message, Exception ex)
|
||||
{
|
||||
log.Warn($"{message}{Environment.NewLine}" +
|
||||
$"{ex.ToString()}");
|
||||
log.Warn($"{message}{Environment.NewLine}{ex}");
|
||||
}
|
||||
|
||||
//internal static void Debug(string message)
|
||||
|
|
Loading…
Reference in a new issue