Refine utils.Key for readability

This commit is contained in:
Mygod
2016-07-05 19:31:58 +08:00
parent c480137dec
commit 07eb4d2a5c
5 changed files with 39 additions and 39 deletions
@@ -83,8 +83,8 @@ class ShadowsocksApplication extends Application {
.setLabel(getVersionName)
.build())
def profileId = settings.getInt(Key.profileId, -1)
def profileId(i: Int) = editor.putInt(Key.profileId, i).apply
def profileId = settings.getInt(Key.id, -1)
def profileId(i: Int) = editor.putInt(Key.id, i).apply
def currentProfile = profileManager.getProfile(profileId)
def switchProfile(id: Int) = {