mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Unnecessarily icons removed from context menu
This commit is contained in:
parent
cec6cb92a3
commit
f12292ebb0
@ -15,16 +15,15 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
private static ToolStripMenuItem CreateProfileMenu(Profile profile)
|
private static ToolStripMenuItem CreateProfileMenu(Profile profile)
|
||||||
{
|
{
|
||||||
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Apply, Properties.Resources.Run_x16,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Apply, null,
|
||||||
(sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile))
|
(sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile))
|
||||||
{
|
{
|
||||||
Enabled = profile.IsPossible && !profile.IsActive
|
Enabled = profile.IsPossible && !profile.IsActive
|
||||||
});
|
});
|
||||||
profileMenu.DropDownItems.Add(new ToolStripSeparator());
|
profileMenu.DropDownItems.Add(new ToolStripSeparator());
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Edit, Properties.Resources.Edit_x16,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Edit, null,
|
||||||
(sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.EditProfile, profile)));
|
(sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.EditProfile, profile)));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
|
||||||
Properties.Resources.Shortcut_x16,
|
|
||||||
(sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.CreateShortcut, profile)));
|
(sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.CreateShortcut, profile)));
|
||||||
|
|
||||||
return profileMenu;
|
return profileMenu;
|
||||||
|
@ -77,9 +77,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
<None Include="Resources\Run_x16.png" />
|
|
||||||
<None Include="Resources\Shortcut_x16.png" />
|
|
||||||
<None Include="Resources\Edit_x16.png" />
|
|
||||||
<None Include="Resources\Icon_x16.png" />
|
<None Include="Resources\Icon_x16.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -54,7 +54,7 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
private ToolStripMenuItem CreateProfileMenu(Profile profile)
|
private ToolStripMenuItem CreateProfileMenu(Profile profile)
|
||||||
{
|
{
|
||||||
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run, Properties.Resources.Run_x16,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run, null,
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile,
|
HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile,
|
||||||
SelectedItemPaths.FirstOrDefault())));
|
SelectedItemPaths.FirstOrDefault())));
|
||||||
@ -63,8 +63,7 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile,
|
HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile,
|
||||||
SelectedItemPaths.FirstOrDefault(), true)));
|
SelectedItemPaths.FirstOrDefault(), true)));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripSeparator());
|
profileMenu.DropDownItems.Add(new ToolStripSeparator());
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
|
||||||
Properties.Resources.Shortcut_x16,
|
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
HeliosDisplayManagement.Open(HeliosStartupAction.CreateShortcut, profile,
|
HeliosDisplayManagement.Open(HeliosStartupAction.CreateShortcut, profile,
|
||||||
SelectedItemPaths.FirstOrDefault())));
|
SelectedItemPaths.FirstOrDefault())));
|
||||||
|
@ -56,13 +56,12 @@ namespace HeliosDisplayManagement.ShellExtension
|
|||||||
{
|
{
|
||||||
var appId = ParseSteamAppId();
|
var appId = ParseSteamAppId();
|
||||||
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
var profileMenu = new ToolStripMenuItem(profile.Name, new ProfileIcon(profile).ToBitmap(16, 16));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run, Properties.Resources.Run_x16,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Run, null,
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
HeliosDisplayManagement.OpenSteamGame(HeliosStartupAction.SwitchProfile, profile,
|
HeliosDisplayManagement.OpenSteamGame(HeliosStartupAction.SwitchProfile, profile,
|
||||||
appId)));
|
appId)));
|
||||||
profileMenu.DropDownItems.Add(new ToolStripSeparator());
|
profileMenu.DropDownItems.Add(new ToolStripSeparator());
|
||||||
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut,
|
profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null,
|
||||||
Properties.Resources.Shortcut_x16,
|
|
||||||
(sender, args) =>
|
(sender, args) =>
|
||||||
HeliosDisplayManagement.OpenSteamGame(HeliosStartupAction.CreateShortcut, profile,
|
HeliosDisplayManagement.OpenSteamGame(HeliosStartupAction.CreateShortcut, profile,
|
||||||
appId)));
|
appId)));
|
||||||
|
@ -19,7 +19,7 @@ namespace HeliosDisplayManagement.ShellExtension.Properties {
|
|||||||
// class via a tool like ResGen or Visual Studio.
|
// class via a tool like ResGen or Visual Studio.
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
// with the /str option, or rebuild your VS project.
|
// with the /str option, or rebuild your VS project.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources {
|
internal class Resources {
|
||||||
@ -60,16 +60,6 @@ namespace HeliosDisplayManagement.ShellExtension.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap Edit_x16 {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("Edit_x16", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -79,25 +69,5 @@ namespace HeliosDisplayManagement.ShellExtension.Properties {
|
|||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap Run_x16 {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("Run_x16", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap Shortcut_x16 {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("Shortcut_x16", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,16 +118,7 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
<data name="Edit_x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\Edit_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon_x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Icon_x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\Icon_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Icon_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Run_x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\Run_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="Shortcut_x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\Shortcut_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
</root>
|
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
Binary file not shown.
Before Width: | Height: | Size: 15 KiB |
Loading…
Reference in New Issue
Block a user