diff --git a/DisplayMagician/UIForms/ShortcutLibraryForm.cs b/DisplayMagician/UIForms/ShortcutLibraryForm.cs index 996bfe7..e83804a 100644 --- a/DisplayMagician/UIForms/ShortcutLibraryForm.cs +++ b/DisplayMagician/UIForms/ShortcutLibraryForm.cs @@ -332,12 +332,17 @@ namespace DisplayMagician.UIForms MaskedForm maskedForm = MaskedForm.Show(this, message); maskedForm.BringToFront(); + ilv_saved_shortcuts.SuspendLayout(); + ilv_saved_shortcuts.Refresh(); + // Get the MainForm so we can access the NotifyIcon on it. MainForm mainForm = (MainForm)this.Owner; // Run the shortcut ShortcutRepository.RunShortcut(_selectedShortcut, mainForm.notifyIcon); + ilv_saved_shortcuts.ResumeLayout(); + maskedForm.Close(); } else