[Feature] Option 'Show in Taskbar' default true (#304, #299), version 1.2.3.9

This commit is contained in:
Markus Hofknecht 2022-02-06 14:36:35 +01:00
parent 1ff825f598
commit fc55672814
4 changed files with 4 additions and 30 deletions

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.3.8")]
[assembly: AssemblyFileVersion("1.2.3.8")]
[assembly: AssemblyVersion("1.2.3.9")]
[assembly: AssemblyFileVersion("1.2.3.9")]

View file

@ -142,7 +142,7 @@ namespace SystemTrayMenu.Properties
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool ShowInTaskbar
{
get

View file

@ -1108,7 +1108,7 @@ namespace SystemTrayMenu.UserInterface
private void ButtonAdvancedDefault_Click(object sender, EventArgs e)
{
checkBoxShowInTaskbar.Checked = false;
checkBoxShowInTaskbar.Checked = true;
checkBoxOpenItemWithOneClick.Checked = true;
checkBoxOpenDirectoryWithOneClick.Checked = true;

View file

@ -44,32 +44,6 @@ namespace SystemTrayMenu.Utilities
!path[2..].Contains(@"\", StringComparison.InvariantCulture);
}
public static bool PingHost(string nameOrAddress)
{
bool pingable = false;
Ping pinger = null;
try
{
pinger = new Ping();
PingReply reply = pinger.Send(nameOrAddress);
pingable = reply.Status == IPStatus.Success;
}
catch (PingException ex)
{
Log.Warn($"Ping {nameOrAddress} failed", ex);
}
finally
{
if (pinger != null)
{
pinger.Dispose();
}
}
return pingable;
}
private static string GetShortcutFileNamePath(object shortcutFilename, out bool isFolder)
{
string resolvedFilename = string.Empty;