mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-29 08:41:12 +13: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
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.9.3")]
|
[assembly: AssemblyVersion("1.2.9.4")]
|
||||||
[assembly: AssemblyFileVersion("1.2.9.3")]
|
[assembly: AssemblyFileVersion("1.2.9.4")]
|
||||||
|
|
|
@ -986,10 +986,13 @@ namespace SystemTrayMenu.UserInterface
|
||||||
|
|
||||||
private void ButtonChangeRelativeFolder_Click(object sender, EventArgs e)
|
private void ButtonChangeRelativeFolder_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Settings.Default.PathDirectory = Path.GetRelativePath(
|
if (!string.IsNullOrEmpty(Config.Path))
|
||||||
Directory.GetParent(Assembly.GetEntryAssembly().Location).FullName,
|
{
|
||||||
Config.Path);
|
Settings.Default.PathDirectory = Path.GetRelativePath(
|
||||||
textBoxFolder.Text = Config.Path;
|
Directory.GetParent(Assembly.GetEntryAssembly().Location).FullName,
|
||||||
|
Config.Path);
|
||||||
|
textBoxFolder.Text = Config.Path;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ButtonOpenAssemblyLocation_Click(object sender, EventArgs e)
|
private void ButtonOpenAssemblyLocation_Click(object sender, EventArgs e)
|
||||||
|
|
Loading…
Reference in a new issue