Skip to content

Commit

Permalink
Updated Add SoP button image
Browse files Browse the repository at this point in the history
changed button from import to add
fixed context menu item enabling
fixed #5
  • Loading branch information
Hefaistos68 committed Sep 5, 2023
1 parent 59ab8d8 commit 85fed79
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 53 deletions.
3 changes: 3 additions & 0 deletions VSLXshared/DataModel/VsItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public VsItem(string name, string path, DateTime? modified) : this()
[JsonIgnore]
public bool Warning { get; set; }

/// <summary>
/// Gets or sets a value indicating whether is favorite.
/// </summary>
public bool IsFavorite { get; set; }

/// <summary>
Expand Down
73 changes: 37 additions & 36 deletions VSLauncherX/MainDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 18 additions & 4 deletions VSLauncherX/MainDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,13 @@ private void RebuildTaskbarItems(VsFolder? folder = null)
{
AddItemToTaskbar(item);
}
if(item is VsFolder f)
if (item is VsFolder f)
{
RebuildTaskbarItems(f);
}
}

if(folder is null || folder == this.solutionGroups)
if (folder is null || folder == this.solutionGroups)
{
this.TaskbarJumpList.Refresh();
}
Expand Down Expand Up @@ -1314,11 +1314,25 @@ private void mainPanel_Resize(object sender, EventArgs e)
private void ctxMenu_Opening(object sender, System.ComponentModel.CancelEventArgs e)
{
// if the currently selected item is a group, enable the "Add..." menu item, otherwise remove it
this.ctxMenu.Items[0].Enabled = this.olvFiles.SelectedObject is VsFolder || this.olvFiles.SelectedObject is null;
if(this.olvFiles.SelectedObject is VsItem i)
this.addToolStripMenuItem.Enabled = this.olvFiles.SelectedObject is VsFolder || this.olvFiles.SelectedObject is null;
bool bOther = true;

if (this.olvFiles.SelectedObject is VsItem i)
{
this.favoriteToolStripMenuItem.Checked = i.IsFavorite;
}
if(this.olvFiles.SelectedObject is null)
{
// disable all other menu items
bOther = false;
}

this.runToolStripMenuItem.Enabled = bOther;
this.runAsAdminToolStripMenuItem.Enabled = bOther;
this.renameToolStripMenuItem.Enabled = bOther;
this.removeToolStripMenuItem.Enabled = bOther;
this.settingsToolStripMenuItem.Enabled = bOther;
this.favoriteToolStripMenuItem.Enabled = bOther;
}

/// <summary>
Expand Down
25 changes: 12 additions & 13 deletions VSLauncherX/MainDialog.resx
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,16 @@
<data name="btnImportSoP.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAkhJREFUSEvtk8+LEmEYxz3U/zHqIfwBHSLqoBZGMYeygxeJig4LES2rkCExpN4K
giKQ8OBli6aWlZIkKARzqRgNTAliy6RDsBtF0I4/Bk8+vc+z804zOsQKdqoXPszzPr7v9zPzzujQNA3+
JiRoNBpQKBTmCmYaAmyEw+G5gpn/BX/EVrD1U50L/6Cg3+vT4sFgAD21b7vGjK1AFEVQt3pTi3l49e5r
eP/qI9VcNrmWMyWoVqvQ6XRgOBxaJDxcTpfgvHCFSB24BkqpSf3Nja/QbL6Fhw9WCKyxNyVA3q2tw7ry
CbShRhK7cM7jG8+g1WpBJBIBp9NpAXuBQADy+fxvwZqs0MYlb8ZyDHbhyK1Ld8Dn8xmh6XQaKpWK0fP7
/XQDOEiAd8Q3c4k5PLewDPf1+YJwGfbt3W+EZzIZGI/HFKYoCni9XuqHQiEYjUZWwcvVN3DBLRE4x+uT
2xV6H8XrT6l3UjhlCVdVFWRZhna7TYJ6vW5IyuWyVYBB96RHVCOlm8+NF84Fh4RjtDkWi1F4NBqFZDJJ
4XhEeC0Wi7Qmm83O/gQB4Qht9ng8EAwGqeaCyX4qlZr9HRwVpr8cs8BMLpfbFszyFZ0WLoLL5bIE2Qnc
bjd0u91tAWL8D/Q5Z1JyVliCMyfOWcISiQTUajVLT5Ik2u/AwYpFRl/nuN7bxVhlGJLFPVep3vi8CfF4
3Bz4g9EwzZcZuymcDxYkMA7qUxpmCR7jty/f+ZO9YBxmISJjhfFBB2tR376zwYIMCQ/Wf9rBcDh+AcwF
32g2d94MAAAAAElFTkSuQmCC
wQAADsEBuJFr7QAAAidJREFUSEvtk8trE1EUh7NQ+m/cOJAajVLoIqVCKlnYLNzERTdZSGWCCKULCZTY
qksNgqSYZTY1pCAjGgJCQiFSWhkSkEDBtI2rNqtmY/Oa7fGew9zr3GQoDcSVHviYe+7j92Ue8ViWBX8T
ElSrVchmsxMFM6UAJ8Lh8ETBzP+CC3EVnP/qTIR/UNDr9mhzv9+HbqfnuseJqyASiUDnvDuyWYRX3n+D
H/vHNBay4b2CEUGlUoFmswmDwUCRiPDtFwV4zJLEWvAVmIXvIArPFYtFAsdYIwLkYPcQDs2fYA0skriF
Cz6/KUGj0YBoNAper1cB54LBIGQymT+C3W2TDq7eeKk8BrdwZG15AwKBgAyNxWKQy+Vkj2v1eh08WBiE
v0gcFhJneEbfgrzdP2JPQbumyTAkkUiAaZrKXCgUwuuUItgzavBEWyewx2txc4fex8fXX2hugd1TghA3
gc2SIsCg3PonGiOFt2X5woXgFpuhw7quQzqdJsrlMrRaLdmnUinw+Xy4b3PsO7jJbpMgmUyCYRhErVaD
drst+3w+D36/H/dlx34Hs2yOBE4ueETPSDDOV/SAPRwJchNoGn0I10mAyP+B3QuGJUtMh/nZO0pYPB6H
UqmkzHHe0WeKxYNWOD2b+/bcFY7BkZKV6ec0PmmeYsDWUKATXLtK4aJ4EOPM2S2VU4KP8ey0Le7sK67z
kEXOB86RDY4X6fBlyynBYM5de+kS5fH8BsCMv+nA8FFLAAAAAElFTkSuQmCC
</value>
</data>
<data name="btnImportVS.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
Expand Down Expand Up @@ -240,7 +239,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0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AQACgAIAA8ABAAHAAdwBwAEAAfABygGmAQABMwUAATMB
AAEzAQABMwEAAjMCAAMWAQADHAEAAyIBAAMpAQADVQEAA00BAANCAQADOQEAAYABfAH/AQACUAH/AQAB
kwEAAdYBAAH/AewBzAEAAcYB1gHvAQAB1gLnAQABkAGpAa0CAAH/ATMDAAFmAwABmQMAAcwCAAEzAwAC
Expand Down
Binary file modified VSLauncherX/Resources/Images24/ImportSoP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 85fed79

Please sign in to comment.