diff --git a/Config/Config.cs b/Config/Config.cs index cdc28c9..d3970c6 100644 --- a/Config/Config.cs +++ b/Config/Config.cs @@ -40,8 +40,7 @@ namespace SystemTrayMenu public static bool LoadOrSetByUser() { - bool pathOK = Directory.Exists( - Properties.Settings.Default.PathDirectory); + bool pathOK = Directory.Exists(Path); if (!pathOK) { diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 9add406..baa1fa2 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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.0.17.1")] -[assembly: AssemblyFileVersion("1.0.17.1")] +[assembly: AssemblyVersion("1.0.17.2")] +[assembly: AssemblyFileVersion("1.0.17.2")] diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs index f5227f8..ac4672a 100644 --- a/Properties/Settings.Designer.cs +++ b/Properties/Settings.Designer.cs @@ -89,6 +89,7 @@ namespace SystemTrayMenu.Properties { } [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool HideTaskbarForm { @@ -101,6 +102,7 @@ namespace SystemTrayMenu.Properties { } [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool OpenItemWithOneClick { @@ -113,6 +115,7 @@ namespace SystemTrayMenu.Properties { } [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool IsDarkModeAlwaysOn { diff --git a/UserInterface/TaskbarForm.cs b/UserInterface/TaskbarForm.cs index 816417e..b877089 100644 --- a/UserInterface/TaskbarForm.cs +++ b/UserInterface/TaskbarForm.cs @@ -20,12 +20,15 @@ namespace SystemTrayMenu.UserInterface SetLocation(); } + /// + /// Hide below taskbar. + /// private void SetLocation() { Screen screen = Screen.PrimaryScreen; Location = new Point( screen.Bounds.Right - Size.Width, - screen.Bounds.Bottom + 80); // Hide below taskbar + screen.Bounds.Bottom + 80); } } }