[BUG] Fix Duplicate file/folder name causes unexpected result on opening (#434), version 1.3.0.15

This commit is contained in:
Markus Hofknecht 2022-08-05 22:19:55 +02:00
parent 8f1d04a66c
commit 1a9da04f78
6 changed files with 3 additions and 8 deletions

View file

@ -45,7 +45,7 @@ namespace SystemTrayMenu.DataClasses
try
{
FileInfo = new FileInfo(path.Replace("\x00", string.Empty));
Path = FileInfo.FullName;
Path = IsFolder ? $@"{FileInfo.FullName}\" : FileInfo.FullName;
FileExtension = System.IO.Path.GetExtension(Path);
IsLink = FileExtension.Equals(".lnk", StringComparison.InvariantCultureIgnoreCase);
if (IsLink)

View file

@ -5,7 +5,6 @@
namespace SystemTrayMenu.Helper
{
using System.Collections.Generic;
using System.IO;
internal class WindowsExplorerSort : IComparer<string>
{

View file

@ -39,5 +39,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("1.3.0.14")]
[assembly: AssemblyFileVersion("1.3.0.14")]
[assembly: AssemblyVersion("1.3.0.15")]
[assembly: AssemblyFileVersion("1.3.0.15")]

View file

@ -8,7 +8,6 @@ namespace SystemTrayMenu.UserInterface
using System.Windows.Forms;
using SystemTrayMenu.Helper;
using SystemTrayMenu.Utilities;
using Timer = System.Windows.Forms.Timer;
internal class AppNotifyIcon : IDisposable
{

View file

@ -7,7 +7,6 @@ namespace SystemTrayMenu.UserInterface
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Text;

View file

@ -11,9 +11,7 @@ namespace SystemTrayMenu.Utilities
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using SystemTrayMenu.DllImports;