Browse Source

replace ShowFirstTimeBalloon with ShowBalloonTip

tags/4.1.9.3
Student Main 5 years ago
parent
commit
f12ef1a5be
1 changed files with 3 additions and 11 deletions
  1. +3
    -11
      shadowsocks-csharp/View/MenuViewController.cs

+ 3
- 11
shadowsocks-csharp/View/MenuViewController.cs View File

@@ -385,7 +385,7 @@ namespace Shadowsocks.View
{
string argument = @"/select, " + e.Path;
System.Diagnostics.Process.Start("explorer.exe", argument);
Process.Start("explorer.exe", argument);
}
void ShowBalloonTip(string title, string content, ToolTipIcon icon, int timeout)
@@ -428,10 +428,10 @@ namespace Shadowsocks.View
if (updateChecker.NewVersionFound)
{
updateChecker.NewVersionFound = false; /* Reset the flag */
if (System.IO.File.Exists(updateChecker.LatestVersionLocalName))
if (File.Exists(updateChecker.LatestVersionLocalName))
{
string argument = "/select, \"" + updateChecker.LatestVersionLocalName + "\"";
System.Diagnostics.Process.Start("explorer.exe", argument);
Process.Start("explorer.exe", argument);
}
}
}
@@ -632,14 +632,6 @@ namespace Shadowsocks.View
updateChecker.CheckUpdate(config, 3000);
}
private void ShowFirstTimeBalloon()
{
_notifyIcon.BalloonTipTitle = I18N.GetString("Shadowsocks is here");
_notifyIcon.BalloonTipText = I18N.GetString("You can turn on/off Shadowsocks in the context menu");
_notifyIcon.BalloonTipIcon = ToolTipIcon.Info;
_notifyIcon.ShowBalloonTip(0);
}
private void AboutItem_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/shadowsocks/shadowsocks-windows");


Loading…
Cancel
Save