diff --git a/DisplayMagician/Properties/AssemblyInfo.cs b/DisplayMagician/Properties/AssemblyInfo.cs index 7bdb162..dc9d915 100644 --- a/DisplayMagician/Properties/AssemblyInfo.cs +++ b/DisplayMagician/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ using System.Resources; [assembly: Guid("e4ceaf5e-ad01-4695-b179-31168eb74c48")] // Version information -[assembly: AssemblyVersion("2.1.0.37")] -[assembly: AssemblyFileVersion("2.1.0.37")] +[assembly: AssemblyVersion("2.1.0.40")] +[assembly: AssemblyFileVersion("2.1.0.40")] [assembly: NeutralResourcesLanguageAttribute( "en" )] [assembly: CLSCompliant(true)] diff --git a/DisplayMagician/UIForms/DisplayProfileForm.cs b/DisplayMagician/UIForms/DisplayProfileForm.cs index 2bf6413..2d64d8b 100644 --- a/DisplayMagician/UIForms/DisplayProfileForm.cs +++ b/DisplayMagician/UIForms/DisplayProfileForm.cs @@ -223,6 +223,13 @@ namespace DisplayMagician.UIForms } + // Also refresh the right-click menu (if we have a main form loaded) + if (Program.AppMainForm is Form) + { + Program.AppMainForm.RefreshNotifyIconMenus(); + } + + // Restart updating the saved_profiles listview ilv_saved_profiles.ResumeLayout(); } @@ -255,7 +262,7 @@ namespace DisplayMagician.UIForms // Refresh the Profile UI RefreshDisplayProfileUI(); - + } diff --git a/DisplayMagician/UIForms/MainForm.cs b/DisplayMagician/UIForms/MainForm.cs index 4954490..a0443d5 100644 --- a/DisplayMagician/UIForms/MainForm.cs +++ b/DisplayMagician/UIForms/MainForm.cs @@ -317,7 +317,7 @@ namespace DisplayMagician.UIForms } - private void RefreshNotifyIconMenus() + public void RefreshNotifyIconMenus() { // Clear all the profiles profileToolStripMenuItem.DropDownItems.Clear(); @@ -370,7 +370,9 @@ namespace DisplayMagician.UIForms shortcutToolStripMenuItem.DropDownItems.Add(shortcutMenuItem); } } - + + // Apply it by running the Application.DoEvents(); + Application.DoEvents(); } diff --git a/DisplayMagician/UIForms/ShortcutLibraryForm.cs b/DisplayMagician/UIForms/ShortcutLibraryForm.cs index 9a2a9e9..3e3b33e 100644 --- a/DisplayMagician/UIForms/ShortcutLibraryForm.cs +++ b/DisplayMagician/UIForms/ShortcutLibraryForm.cs @@ -47,6 +47,7 @@ namespace DisplayMagician.UIForms // Refresh the Shortcut Library UI RefreshShortcutLibraryUI(); + RemoveWarningIfShortcuts(); } @@ -101,6 +102,12 @@ namespace DisplayMagician.UIForms // Restart updating the saved_profiles listview ilv_saved_shortcuts.ResumeLayout(); + // Also refresh the right-click menu (if we have a main form loaded) + if (Program.AppMainForm is Form) + { + Program.AppMainForm.RefreshNotifyIconMenus(); + } + } private ShortcutItem GetShortcutFromName(string shortcutName)