#80, version 0.9.2.20

This commit is contained in:
Markus Hofknecht 2020-04-11 18:14:23 +02:00
parent 3f94ea0849
commit ff24ee72c9
3 changed files with 14 additions and 12 deletions

View file

@ -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")]

View file

@ -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;

View file

@ -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)