mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
fix: better first start setting
This commit is contained in:
@ -70,6 +70,7 @@ func New(
|
||||
|
||||
if pref.GetBool(preferences.FirstStartKey) {
|
||||
b.SendMetric(metrics.New(metrics.Setup, metrics.FirstStart, metrics.Label(config.GetVersion())))
|
||||
pref.SetBool(preferences.FirstStartKey, false)
|
||||
}
|
||||
|
||||
go b.heartbeat()
|
||||
|
||||
@ -32,6 +32,7 @@ type StoreFactoryConfiger interface {
|
||||
type PreferenceProvider interface {
|
||||
Get(key string) string
|
||||
GetBool(key string) bool
|
||||
SetBool(key string, val bool)
|
||||
GetInt(key string) int
|
||||
Set(key string, value string)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user