mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
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:
parent
325a15bf6d
commit
4c58920e61
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user