Skip to content

Commit

Permalink
boost(Help): Help menu send to the discussion on GitHub for the user …
Browse files Browse the repository at this point in the history
…to be able to ask his questions.
  • Loading branch information
Belphemur committed May 15, 2021
1 parent 1f20329 commit e9fde1c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions SoundSwitch/UI/Component/TrayIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ private void PopulateSettingsMenu()
{
var applicationDirectory = Path.GetDirectoryName(ApplicationPath.Executable);
Debug.Assert(applicationDirectory != null, "applicationDirectory != null");
var readmeHtml = Path.Combine(applicationDirectory, "Readme.html");
_settingsMenu.Items.Add(Application.ProductName + ' ' + AssemblyUtils.GetReleaseState() + " (" + Application.ProductVersion + ")", SoundSwitchLogoIcon.ToBitmap());
_settingsMenu.Items.Add(new ToolStripSeparator());
_settingsMenu.Items.Add(TrayIconStrings.playbackDevices, RessourcePlaybackDevicesBitmap,
Expand All @@ -170,16 +169,7 @@ private void PopulateSettingsMenu()
_settingsMenu.Items.Add(_updateMenuItem);
_settingsMenu.Items.Add(TrayIconStrings.settings, RessourceSettingsSmallBitmap, (sender, e) => ShowSettings());
_settingsMenu.Items.Add(new ToolStripSeparator());
_settingsMenu.Items.Add(TrayIconStrings.help, RessourceInfoHelpBitmap, (sender, e) =>
{
if (!File.Exists(readmeHtml))
{
Log.Error("File {readme} doesn\'t exists", readmeHtml);
return;
}

BrowserUtil.OpenUrl(readmeHtml);
});
_settingsMenu.Items.Add(TrayIconStrings.help, RessourceInfoHelpBitmap, (sender, e) => BrowserUtil.OpenUrl("https://github.com/Belphemur/SoundSwitch/discussions"));
_settingsMenu.Items.Add(TrayIconStrings.communityMenu, ResourceDiscord.ToBitmap(), (sender, e) => { BrowserUtil.OpenUrl("https://discord.gg/gUCw3Ue"); });
_settingsMenu.Items.Add(TrayIconStrings.donate, ResourceDonateBitmap,
(sender, e) => BrowserUtil.OpenUrl($"https://soundswitch.aaflalo.me/?utm_campaign=application&utm_source={Application.ProductVersion}#donate"));
Expand Down

0 comments on commit e9fde1c

Please sign in to comment.