Add a toggle for showing traffic in notification.

TODO: Disabling it causes weird behavior. :-(
This commit is contained in:
Mygod
2015-11-24 21:16:08 +08:00
parent 9fa57dfe4b
commit c1730e4fa6
8 changed files with 43 additions and 29 deletions
@@ -76,9 +76,10 @@ object ShadowsocksApplication {
.setLabel(getVersionName)
.build())
def notificationTraffic = settings.getBoolean(Key.notificationTraffic, true)
def profileId = settings.getInt(Key.profileId, -1)
def profileId(i: Int) = settings.edit.putInt(Key.profileId, i).apply
def proxy = settings.getString(Key.proxy, "")
def currentProfile = profileManager.getProfile(profileId)
def switchProfile(id: Int) = {