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:
@ -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
|
||||
___....___
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user