fix: better first start setting

This commit is contained in:
James Houlahan
2020-08-05 15:09:08 +02:00
parent f651d39820
commit 34ef9063cb
5 changed files with 3 additions and 7 deletions

View File

@ -21,7 +21,6 @@ package cli
import (
"github.com/ProtonMail/proton-bridge/internal/events"
"github.com/ProtonMail/proton-bridge/internal/frontend/types"
"github.com/ProtonMail/proton-bridge/internal/preferences"
"github.com/ProtonMail/proton-bridge/pkg/config"
"github.com/ProtonMail/proton-bridge/pkg/listener"
@ -241,8 +240,6 @@ func (f *frontendCLI) Loop(credentialsError error) error {
return credentialsError
}
f.preferences.SetBool(preferences.FirstStartKey, false)
f.Print(`
Welcome to ProtonMail Bridge interactive shell
___....___

View File

@ -317,8 +317,6 @@ func (s *FrontendQt) qtExecute(Procedure func(*FrontendQt) error) error {
// Set first start flag.
s.Qml.SetIsFirstStart(s.preferences.GetBool(preferences.FirstStartKey))
// Don't repeat next start.
s.preferences.SetBool(preferences.FirstStartKey, false)
// Check if it is first start after update (fresh version).
lastVersion := s.preferences.Get(preferences.LastVersionKey)