more shenanigans
This commit is contained in:
parent
df64448f55
commit
81f9be61e6
1 changed files with 16 additions and 15 deletions
|
@ -654,8 +654,6 @@ internal partial class SelectForm : CustomForm
|
||||||
selectionTreeView.NodeMouseClick += (sender, e) =>
|
selectionTreeView.NodeMouseClick += (sender, e) =>
|
||||||
{
|
{
|
||||||
int cmi = ++contextMenuIndex;
|
int cmi = ++contextMenuIndex;
|
||||||
do { Thread.Sleep(0); } while (!Program.Canceled && nodeContextMenu.Visible);
|
|
||||||
if (cmi != contextMenuIndex || Program.Canceled) return;
|
|
||||||
TreeNode node = null;
|
TreeNode node = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -818,20 +816,23 @@ internal partial class SelectForm : CustomForm
|
||||||
AddToContextMenu(cmi, new ContextMenuItem("Open SteamDB", "SteamDB",
|
AddToContextMenu(cmi, new ContextMenuItem("Open SteamDB", "SteamDB",
|
||||||
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser("https://steamdb.info/app/" + id))));
|
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser("https://steamdb.info/app/" + id))));
|
||||||
}
|
}
|
||||||
if (selection is not null && selection.IsSteam)
|
if (selection is not null)
|
||||||
{
|
{
|
||||||
AddToContextMenu(cmi, new ContextMenuItem("Open Steam Store", "Steam Store",
|
if (selection.IsSteam)
|
||||||
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser(selection.ProductUrl))));
|
{
|
||||||
AddToContextMenu(cmi, new ContextMenuItem("Open Steam Community", (id, selection.SubIconUrl, true), "Steam Community",
|
AddToContextMenu(cmi, new ContextMenuItem("Open Steam Store", "Steam Store",
|
||||||
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser("https://steamcommunity.com/app/" + id))));
|
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser(selection.ProductUrl))));
|
||||||
}
|
AddToContextMenu(cmi, new ContextMenuItem("Open Steam Community", (id, selection.SubIconUrl, true), "Steam Community",
|
||||||
else
|
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser("https://steamcommunity.com/app/" + id))));
|
||||||
{
|
}
|
||||||
AddToContextMenu(cmi, new ToolStripSeparator());
|
else
|
||||||
AddToContextMenu(cmi, new ContextMenuItem("Open ScreamDB", "ScreamDB",
|
{
|
||||||
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser("https://scream-db.web.app/offers/" + id))));
|
AddToContextMenu(cmi, new ToolStripSeparator());
|
||||||
AddToContextMenu(cmi, new ContextMenuItem("Open Epic Games Store", "Epic Games",
|
AddToContextMenu(cmi, new ContextMenuItem("Open ScreamDB", "ScreamDB",
|
||||||
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser(selection.ProductUrl))));
|
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser("https://scream-db.web.app/offers/" + id))));
|
||||||
|
AddToContextMenu(cmi, new ContextMenuItem("Open Epic Games Store", "Epic Games",
|
||||||
|
new EventHandler((sender, e) => Diagnostics.OpenUrlInInternetBrowser(selection.ProductUrl))));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cmi != contextMenuIndex) return;
|
if (cmi != contextMenuIndex) return;
|
||||||
|
|
Loading…
Reference in a new issue