mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-04 13:57:39 +00:00
Organize all context menu options
This commit is contained in:
parent
7079200b60
commit
1abb545357
3 changed files with 26 additions and 25 deletions
|
|
@ -84,6 +84,14 @@ namespace SteamController
|
|||
|
||||
AddSteamOptions(contextMenu);
|
||||
|
||||
var settingsItem = contextMenu.Items.Add("&Settings");
|
||||
settingsItem.Click += Settings_Click;
|
||||
|
||||
var shortcutsItem = contextMenu.Items.Add("&Shortcuts");
|
||||
shortcutsItem.Click += delegate { Process.Start("explorer.exe", "https://steam-deck-tools.ayufan.dev/shortcuts.html"); };
|
||||
|
||||
contextMenu.Items.Add(new ToolStripSeparator());
|
||||
|
||||
if (startupManager.IsAvailable)
|
||||
{
|
||||
var startupItem = new ToolStripMenuItem("Run On Startup");
|
||||
|
|
@ -92,17 +100,9 @@ namespace SteamController
|
|||
contextMenu.Items.Add(startupItem);
|
||||
}
|
||||
|
||||
var settingsItem = contextMenu.Items.Add("&Settings");
|
||||
settingsItem.Click += Settings_Click;
|
||||
|
||||
contextMenu.Items.Add(new ToolStripSeparator());
|
||||
|
||||
var checkForUpdatesItem = contextMenu.Items.Add("&Check for Updates");
|
||||
checkForUpdatesItem.Click += delegate { Instance.RunUpdater(TitleWithVersion, true); };
|
||||
|
||||
var shortcutsItem = contextMenu.Items.Add("&Shortcuts");
|
||||
shortcutsItem.Click += delegate { Process.Start("explorer.exe", "https://steam-deck-tools.ayufan.dev/shortcuts.html"); };
|
||||
|
||||
var helpItem = contextMenu.Items.Add("&Help");
|
||||
helpItem.Click += delegate { Process.Start("explorer.exe", "https://steam-deck-tools.ayufan.dev"); };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue