mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Now refreshes the list of profiles when ShelExtension's context menu is opening
This commit is contained in:
parent
5f9a007e95
commit
c6de48b178
@ -39,6 +39,7 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
var explorerMenu = new ContextMenuStrip();
|
var explorerMenu = new ContextMenuStrip();
|
||||||
if (Profile.GetAllProfiles().Any())
|
if (Profile.GetAllProfiles().Any())
|
||||||
{
|
{
|
||||||
|
Profile.RefreshActiveStatus();
|
||||||
var extensionMenu = new ToolStripMenuItem(Language.Display_Profiles,
|
var extensionMenu = new ToolStripMenuItem(Language.Display_Profiles,
|
||||||
Properties.Resources.Icon_x16);
|
Properties.Resources.Icon_x16);
|
||||||
foreach (var profile in Profile.GetAllProfiles())
|
foreach (var profile in Profile.GetAllProfiles())
|
||||||
|
@ -26,9 +26,13 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
var explorerMenu = new ContextMenuStrip();
|
var explorerMenu = new ContextMenuStrip();
|
||||||
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
|
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
|
||||||
Properties.Resources.Icon_x16);
|
Properties.Resources.Icon_x16);
|
||||||
foreach (var profile in Profile.GetAllProfiles())
|
if (Profile.GetAllProfiles().Any())
|
||||||
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
{
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
Profile.RefreshActiveStatus();
|
||||||
|
foreach (var profile in Profile.GetAllProfiles())
|
||||||
|
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
||||||
|
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
||||||
|
}
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
||||||
Properties.Resources.Icon_x16,
|
Properties.Resources.Icon_x16,
|
||||||
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
||||||
|
@ -27,9 +27,13 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
var explorerMenu = new ContextMenuStrip();
|
var explorerMenu = new ContextMenuStrip();
|
||||||
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
|
var extensionMenu = new ToolStripMenuItem(Language.Open_under_Display_Profile,
|
||||||
Properties.Resources.Icon_x16);
|
Properties.Resources.Icon_x16);
|
||||||
foreach (var profile in Profile.GetAllProfiles())
|
if (Profile.GetAllProfiles().Any())
|
||||||
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
{
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
Profile.RefreshActiveStatus();
|
||||||
|
foreach (var profile in Profile.GetAllProfiles())
|
||||||
|
extensionMenu.DropDownItems.Add(CreateProfileMenu(profile));
|
||||||
|
extensionMenu.DropDownItems.Add(new ToolStripSeparator());
|
||||||
|
}
|
||||||
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
extensionMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Manage_Profiles,
|
||||||
Properties.Resources.Icon_x16,
|
Properties.Resources.Icon_x16,
|
||||||
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
(sender, args) => { HeliosDisplayManagement.Open(); }));
|
||||||
|
Loading…
Reference in New Issue
Block a user