mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-28 07:11:28 +12:00
[BUG] Fix Exception when PathDirectory empty and click "Change to relative folder" (#376), version 1.2.9.4
This commit is contained in:
parent
a16e8eb7c5
commit
756838ae85
2 changed files with 9 additions and 6 deletions
|
@ -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.2.9.3")]
|
||||
[assembly: AssemblyFileVersion("1.2.9.3")]
|
||||
[assembly: AssemblyVersion("1.2.9.4")]
|
||||
[assembly: AssemblyFileVersion("1.2.9.4")]
|
||||
|
|
|
@ -985,12 +985,15 @@ namespace SystemTrayMenu.UserInterface
|
|||
}
|
||||
|
||||
private void ButtonChangeRelativeFolder_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(Config.Path))
|
||||
{
|
||||
Settings.Default.PathDirectory = Path.GetRelativePath(
|
||||
Directory.GetParent(Assembly.GetEntryAssembly().Location).FullName,
|
||||
Config.Path);
|
||||
textBoxFolder.Text = Config.Path;
|
||||
}
|
||||
}
|
||||
|
||||
private void ButtonOpenAssemblyLocation_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue