From f12292ebb01e21baafbe3642277f4bd3a1f65c5d Mon Sep 17 00:00:00 2001 From: s_falahati Date: Wed, 24 Oct 2018 03:08:35 +0330 Subject: [PATCH] Unnecessarily icons removed from context menu --- .../HeliosDesktopMenuExtension.cs | 7 ++-- ...iosDisplayManagement.ShellExtension.csproj | 3 -- .../HeliosExecutableMenuExtension.cs | 5 ++- .../HeliosSteamUrlMenuExtension.cs | 5 ++- .../Properties/Resources.Designer.cs | 32 +----------------- .../Properties/Resources.resx | 9 ----- .../Resources/Edit_x16.png | Bin 14753 -> 0 bytes .../Resources/Run_x16.png | Bin 14664 -> 0 bytes .../Resources/Shortcut_x16.png | Bin 15208 -> 0 bytes 9 files changed, 8 insertions(+), 53 deletions(-) delete mode 100644 HeliosDisplayManagement.ShellExtension/Resources/Edit_x16.png delete mode 100644 HeliosDisplayManagement.ShellExtension/Resources/Run_x16.png delete mode 100644 HeliosDisplayManagement.ShellExtension/Resources/Shortcut_x16.png diff --git a/HeliosDisplayManagement.ShellExtension/HeliosDesktopMenuExtension.cs b/HeliosDisplayManagement.ShellExtension/HeliosDesktopMenuExtension.cs index 50b4c50..10da1a6 100644 --- a/HeliosDisplayManagement.ShellExtension/HeliosDesktopMenuExtension.cs +++ b/HeliosDisplayManagement.ShellExtension/HeliosDesktopMenuExtension.cs @@ -15,16 +15,15 @@ namespace HeliosDisplayManagement.ShellExtension private static ToolStripMenuItem CreateProfileMenu(Profile profile) { 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)) { Enabled = profile.IsPossible && !profile.IsActive }); 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))); - profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, - Properties.Resources.Shortcut_x16, + profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null, (sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.CreateShortcut, profile))); return profileMenu; diff --git a/HeliosDisplayManagement.ShellExtension/HeliosDisplayManagement.ShellExtension.csproj b/HeliosDisplayManagement.ShellExtension/HeliosDisplayManagement.ShellExtension.csproj index bb71971..958edde 100644 --- a/HeliosDisplayManagement.ShellExtension/HeliosDisplayManagement.ShellExtension.csproj +++ b/HeliosDisplayManagement.ShellExtension/HeliosDisplayManagement.ShellExtension.csproj @@ -77,9 +77,6 @@ - - - diff --git a/HeliosDisplayManagement.ShellExtension/HeliosExecutableMenuExtension.cs b/HeliosDisplayManagement.ShellExtension/HeliosExecutableMenuExtension.cs index 3d288ae..4d8b853 100644 --- a/HeliosDisplayManagement.ShellExtension/HeliosExecutableMenuExtension.cs +++ b/HeliosDisplayManagement.ShellExtension/HeliosExecutableMenuExtension.cs @@ -54,7 +54,7 @@ namespace HeliosDisplayManagement.ShellExtension private ToolStripMenuItem CreateProfileMenu(Profile profile) { 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) => HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile, SelectedItemPaths.FirstOrDefault()))); @@ -63,8 +63,7 @@ namespace HeliosDisplayManagement.ShellExtension HeliosDisplayManagement.Open(HeliosStartupAction.SwitchProfile, profile, SelectedItemPaths.FirstOrDefault(), true))); profileMenu.DropDownItems.Add(new ToolStripSeparator()); - profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, - Properties.Resources.Shortcut_x16, + profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null, (sender, args) => HeliosDisplayManagement.Open(HeliosStartupAction.CreateShortcut, profile, SelectedItemPaths.FirstOrDefault()))); diff --git a/HeliosDisplayManagement.ShellExtension/HeliosSteamUrlMenuExtension.cs b/HeliosDisplayManagement.ShellExtension/HeliosSteamUrlMenuExtension.cs index 0cc5ed4..3fa8627 100644 --- a/HeliosDisplayManagement.ShellExtension/HeliosSteamUrlMenuExtension.cs +++ b/HeliosDisplayManagement.ShellExtension/HeliosSteamUrlMenuExtension.cs @@ -56,13 +56,12 @@ namespace HeliosDisplayManagement.ShellExtension { var appId = ParseSteamAppId(); 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) => HeliosDisplayManagement.OpenSteamGame(HeliosStartupAction.SwitchProfile, profile, appId))); profileMenu.DropDownItems.Add(new ToolStripSeparator()); - profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, - Properties.Resources.Shortcut_x16, + profileMenu.DropDownItems.Add(new ToolStripMenuItem(Language.Create_Shortcut, null, (sender, args) => HeliosDisplayManagement.OpenSteamGame(HeliosStartupAction.CreateShortcut, profile, appId))); diff --git a/HeliosDisplayManagement.ShellExtension/Properties/Resources.Designer.cs b/HeliosDisplayManagement.ShellExtension/Properties/Resources.Designer.cs index 32dcb28..75b4041 100644 --- a/HeliosDisplayManagement.ShellExtension/Properties/Resources.Designer.cs +++ b/HeliosDisplayManagement.ShellExtension/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace HeliosDisplayManagement.ShellExtension.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // 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.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { @@ -60,16 +60,6 @@ namespace HeliosDisplayManagement.ShellExtension.Properties { } } - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap Edit_x16 { - get { - object obj = ResourceManager.GetObject("Edit_x16", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -79,25 +69,5 @@ namespace HeliosDisplayManagement.ShellExtension.Properties { return ((System.Drawing.Bitmap)(obj)); } } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap Run_x16 { - get { - object obj = ResourceManager.GetObject("Run_x16", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap Shortcut_x16 { - get { - object obj = ResourceManager.GetObject("Shortcut_x16", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } } } diff --git a/HeliosDisplayManagement.ShellExtension/Properties/Resources.resx b/HeliosDisplayManagement.ShellExtension/Properties/Resources.resx index 022d619..f3941a7 100644 --- a/HeliosDisplayManagement.ShellExtension/Properties/Resources.resx +++ b/HeliosDisplayManagement.ShellExtension/Properties/Resources.resx @@ -118,16 +118,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - ..\Resources\Edit_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\Icon_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\Run_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\Shortcut_x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - \ No newline at end of file diff --git a/HeliosDisplayManagement.ShellExtension/Resources/Edit_x16.png b/HeliosDisplayManagement.ShellExtension/Resources/Edit_x16.png deleted file mode 100644 index 6d739774a2915fa3630d334d267b737dfa7818e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14753 zcmeI3Z)_7~9LH}_kPQd;Cv1!mE(M}Q+Pmw&t!LXgR<=&;9HWM!B-{1+Y&+K8mAmWO z%`6&tVTg$uUm#gD5hcVJLs%qg#Ka+kHyRV;8zCl=7>&vzA(AK&oX@pg`)k+nh~edP zN!Q<==llKrp8Gt1dT;Jv6^B0?YXohk0O(eqhUo2*sh-W+{P-2 zfNhT_!bj4bXhaE5=xFyuZ&aQbm3;|Yd$7Tu6LEqRG9@;bN~(sK3)u2`MI2kroQ=&( z%+Y|Y!z#$eB7JP9rX$wl@YrSEDX^_Rhv0Gh1YsNNA+bNyRV;`93)n_XGc9slHk);1T@Fnj<^-S5$MH_i>9k{o-56I*DQ8!WO@$;2 zc|ypLbtP>on#x*vrMQ+c12&sgsB{(YE0r!4QjH=zOp(h;X-;tPTrE>VE_u=!J((X` zLgr8srI2bG*eBHVrAIVVGe)!}N|w5pER5$Q5-HWLIo?#NW@*FRF@_Nok=Aq?(eX6m z`jMe!bQ$d!!?&`j*4>-RPP?i>y*r_Eo9S;iyU4E`sGjQb>nb@NmrliWKCltgD4n;|blGo)O@;SYByt(6c zH*&k}zSh<@d)$fQF4^gJJNZN&Vk83Xi&BR)Ib&^lrUv#!sh`#re8@>jps_}O zrzL8nSyU>l7ZvGhCjSf_{E_5W7{Be|)bOTwNEnr*NZKd<8bUay}{H7Hp z**eIAvb7fw23*lv9#+X&v?>300t@+ped!w65v1O3LlsixRZAx^v>`Jq>8N8EuL;67 zFC?sVRA=^c)|sDFD(9fkS~)cfi*@l-`mLi(#LEB=Ny_6F{M@3pa^-?PW=&@@lh?O8 zd3@pDJbV?cu)Es2_x4uUU2QEppHUSv=qy&NY6dRrye*svyYZs|3VJ;rm&ealH&;9Q zlpIRNLJHoxhP5CCZ_!iTQPa40DI@488Vgeee#G-LS!l(N2>9uQD?Of6PI74v+~uHr zM|U|fOh=1A8pN35A|iqUiVM;p#uOJ35fo5dkOncPxQK|LfZ~EQh%v=QL<9vC7on3(_FQ z6c-T@6i{4{1~I0%h=`zo;(|1YF~vnh1O*fqq(O`+E+Qf*ptv9nVoY%n5kUdP1!)jt zii?N{3Mei}gBVj>L_|bv>buXztSSZv#7LpICF@+Q9Xh?JL_4KG4x|s{hpV8v6&6O;( zTt2ohW&i8opt5D{nD>$WqwjX_zxCks#qf$Zc3wVl>8*=5uFknW+%r*1cc<%Vqn=?K8`wbIm_G8tle-R0?)x+R_1u}} zFPU?(S+r4luH)9}romO+&0BkdU1#>N_iU3s+I-{Q;mK~_Y4pzVxv`%HX11TaIq=z! v-qXDsW?Vm?o1MH|&t-=EE!Q8PZ)DaV|5@pYh-q6YIg9rZwQmhlN diff --git a/HeliosDisplayManagement.ShellExtension/Resources/Run_x16.png b/HeliosDisplayManagement.ShellExtension/Resources/Run_x16.png deleted file mode 100644 index ba33a4e70a31381082b291a8a7b9c1fe5d83a9ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14664 zcmeI3Z)h839LJx5indGy#f@S0ymf9mle2h2$x~5yJOYPdoGWNn<@1C|tle>6# zUDCc9+hiz1n0v9g$sCGUPy|I36dA)QD0?BRFUAz6Z)6jp3}5I#n9tp%$uDWL$H`tk z2WftNp6~Dbd+zi6$-TK(M@M$7?poJ{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oMU;i4jf0)`9HpvDXr6%iCLT#yDezAdh<#tVPg zB5(Os$m@LXe{$kHc@>b;hsJUU&2K>Hz#)Wg-Xh=E5t(tD5Avv}puM51@w zKSz&MKUn1q-f&(%tXyMr~ad6|-z51o@Zx_zq_~m@}$jNsPeLa5cj5xUF w^yg3UmE%XQX@7nEeW7>P&F6kwI(I`w-_3Kz*iZ6RGG;V9IFkKn+rESU0=yCJkN^Mx diff --git a/HeliosDisplayManagement.ShellExtension/Resources/Shortcut_x16.png b/HeliosDisplayManagement.ShellExtension/Resources/Shortcut_x16.png deleted file mode 100644 index 2d792124547651bf3e2d12ef1fd1e29e0fd0a782..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15208 zcmeI3eNYtV9mf}94IrfWZWwAVhp`4YcK43syv=b2I0z_52oS`V8CmxBV8h++akp>> zsnx(x10*FepvIRnwkeiT8Y0>_F=Luo6>1I6fQe|RQm4k+B+`kb#iXIny>L7n;FEOn z=k5Ua<9WW{-|yMa^K$#oHst0!6%iH{hGAGlR;D2jd`7x|L*|0Nk9;{!gO5;K<^~6b z&0FaH4Z`;BUxs0;qqu@1vB;QBF@iOLHVGwcg3D?HY7En@aoK35oE2pyY$?Yl%kP|g zPcGw3$@2ATBVn|qv1MFljh)S}$thrJ${DRmzD6IWb5S6Hl@)23%WB~rlq*^8$xDIQ z-Hgj+9*J0JxKgViNh(o8 zkx4S&CD(_6NM|>hsXRl5uN?RtK;Sc( zOpM=StF&7@Lo+crYhkS{FFJsaoY7}16GXvLCd^XO-#u$#FegT%zxIsdwOVH^?GV$e z00JM<8J&)TY8#8^u@0fq&amlK;8tR0x_gl`PfpI1Ozxgp$IiOAS#0heug$X*yfdT& z_e!PNSy~kA1%hDFdskWR1VUL_nrzj2jyDNT$KyIYP(3--lZjXZEwXyB6g3KBwSv$V zkZLNC06%d=BBdgrBwl4e4x?b=%+*tJkVFANP%5yZNjL|j49o$xj)@lO@011BLU~LK zWftsKTGVq^x|GFje5nqf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