Attempt to fix shortcut library drawing

This is the first attempt at fixing the shortcut
library drawing issue. When the app is frozen
waiting for some games/apps to finish, the
ImageListView refreshes, but doesn't refresh
with any icons, so it all looks a bit pants.

This is my first attempt at fixing that.
This commit is contained in:
Terry MacDonald 2021-04-10 21:51:51 +12:00
parent 325a15bf6d
commit 4c58920e61

View File

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