[BUG] Fix Settingsform does not open when option disabled cache main menu (#291), version 1.2.1.3

This commit is contained in:
Markus Hofknecht 2022-01-09 14:17:00 +01:00
parent 2242f2bc34
commit 8354e9fece
2 changed files with 10 additions and 3 deletions

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.2.1.2")]
[assembly: AssemblyFileVersion("1.2.1.2")]
[assembly: AssemblyVersion("1.2.1.3")]
[assembly: AssemblyFileVersion("1.2.1.3")]

View file

@ -952,7 +952,14 @@ namespace SystemTrayMenu.UserInterface
{
if (e.Button == MouseButtons.Left)
{
SettingsForm.ShowSingleInstance(this);
if (Properties.Settings.Default.CacheMainMenu)
{
SettingsForm.ShowSingleInstance(this);
}
else
{
SettingsForm.ShowSingleInstance(null);
}
}
}