From f12ef1a5be9d81634e60ad6dec29e25f258c0c07 Mon Sep 17 00:00:00 2001 From: Student Main Date: Sun, 19 Jan 2020 19:36:59 +0800 Subject: [PATCH] replace ShowFirstTimeBalloon with ShowBalloonTip --- shadowsocks-csharp/View/MenuViewController.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/shadowsocks-csharp/View/MenuViewController.cs b/shadowsocks-csharp/View/MenuViewController.cs index 3e7c11a5..79c9d5d3 100644 --- a/shadowsocks-csharp/View/MenuViewController.cs +++ b/shadowsocks-csharp/View/MenuViewController.cs @@ -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");