From 8e01bd5368642faade5b09af188cda4944f99000 Mon Sep 17 00:00:00 2001 From: Joe Shang Date: Wed, 24 Mar 2021 12:58:17 +0800 Subject: [PATCH] MOD: update hint for http password --- GerritJarvis/AppDelegate.swift | 1 + .../AccountPreferenceViewController.swift | 2 ++ .../AccountPreferenceViewController.xib | 23 ++++++++++--------- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/GerritJarvis/AppDelegate.swift b/GerritJarvis/AppDelegate.swift index e75357f..720be2d 100644 --- a/GerritJarvis/AppDelegate.swift +++ b/GerritJarvis/AppDelegate.swift @@ -62,6 +62,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { let user = ConfigManager.shared.user, let password = ConfigManager.shared.password { reviewListDataController.changeAccount(baseUrl: baseUrl, user: user, password: password) + Analytics.trackEvent("launch", withProperties: ["user": user]) } } diff --git a/GerritJarvis/Preference/Account/AccountPreferenceViewController.swift b/GerritJarvis/Preference/Account/AccountPreferenceViewController.swift index 817eb1c..bbbccf8 100644 --- a/GerritJarvis/Preference/Account/AccountPreferenceViewController.swift +++ b/GerritJarvis/Preference/Account/AccountPreferenceViewController.swift @@ -8,6 +8,7 @@ import Cocoa import Preferences +import AppCenterAnalytics class AccountPreferenceViewController: NSViewController, PreferencePane { @@ -83,6 +84,7 @@ class AccountPreferenceViewController: NSViewController, PreferencePane { } ConfigManager.shared.update(baseUrl: baseUrl, user: user, password: password, accountId: accountId) + Analytics.trackEvent("login", withProperties: ["user": user]) let alert = NSAlert() alert.addButton(withTitle: NSLocalizedString("OK", comment: "")) diff --git a/GerritJarvis/Preference/Account/AccountPreferenceViewController.xib b/GerritJarvis/Preference/Account/AccountPreferenceViewController.xib index 33e47c6..15f7c3c 100644 --- a/GerritJarvis/Preference/Account/AccountPreferenceViewController.xib +++ b/GerritJarvis/Preference/Account/AccountPreferenceViewController.xib @@ -1,7 +1,8 @@ - + - + + @@ -18,11 +19,11 @@ - + - + @@ -30,7 +31,7 @@ - + @@ -43,14 +44,14 @@ - + - + @@ -62,7 +63,7 @@ - + @@ -70,7 +71,7 @@