[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

@ -951,9 +951,16 @@ namespace SystemTrayMenu.UserInterface
private void PictureBoxSettings_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
if (Properties.Settings.Default.CacheMainMenu)
{
SettingsForm.ShowSingleInstance(this);
}
else
{
SettingsForm.ShowSingleInstance(null);
}
}
}
private void PictureBoxRestart_Paint(object sender, PaintEventArgs e)