fix: properly decide whether it is first gui start

This commit is contained in:
James Houlahan
2020-08-06 09:29:30 +02:00
parent 34ef9063cb
commit ce4a75caf5
2 changed files with 5 additions and 4 deletions

View File

@ -316,7 +316,8 @@ func (s *FrontendQt) qtExecute(Procedure func(*FrontendQt) error) error {
s.View.RootContext().SetContextProperty("go", s.Qml)
// Set first start flag.
s.Qml.SetIsFirstStart(s.preferences.GetBool(preferences.FirstStartKey))
s.Qml.SetIsFirstStart(s.preferences.GetBool(preferences.FirstStartGUIKey))
s.preferences.SetBool(preferences.FirstStartGUIKey, false)
// Check if it is first start after update (fresh version).
lastVersion := s.preferences.Get(preferences.LastVersionKey)