From c28be0134c82c06ed08acf6deedb54b8868d21f8 Mon Sep 17 00:00:00 2001 From: Charlie Qiu Date: Fri, 20 Jan 2017 14:21:39 +0800 Subject: [PATCH] Only show A/G/M on status bar. --- ShadowsocksX-NG/AppDelegate.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index 6f1091f..200f82b 100755 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -564,11 +564,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele let defaults = UserDefaults.standard let mode = defaults.string(forKey: "ShadowsocksRunningMode") if mode == "auto" { - statusItem.title = "Auto".localized + statusItem.title = "A" } else if mode == "global" { - statusItem.title = "Global".localized + statusItem.title = "G" } else if mode == "manual" { - statusItem.title = "Manual".localized + statusItem.title = "M" } let titleWidth = statusItem.title!.size(withAttributes: [NSFontAttributeName: statusItem.button!.font!]).width let imageWidth:CGFloat = AppDelegate.StatusItemIconWidth