forked from Silverfish/proton-bridge
GODT-1508: Splash screen for rebranding.
* Use old keychain until manual update. * Improve desktop files migration for windows and linux. * Revert, need admin rights to change desktop and start menu files.
This commit is contained in:
@ -112,10 +112,9 @@ func (f *FrontendQt) setShowSplashScreen() {
|
||||
return
|
||||
}
|
||||
|
||||
// Current splash screen contains update on "What's new" in facelift.
|
||||
// Therefore, it should be shown only if the last used version was less
|
||||
// than 1.9.0.
|
||||
if ver.LessThan(semver.MustParse("1.9.0")) {
|
||||
// Current splash screen contains update on rebranding. Therefore, it
|
||||
// should be shown only if the last used version was less than 2.2.0.
|
||||
if ver.LessThan(semver.MustParse("2.2.0")) {
|
||||
f.qml.SetShowSplashScreen(true)
|
||||
}
|
||||
}
|
||||
|
||||
@ -77,13 +77,15 @@ func (f *FrontendQt) changeLocalCache(enableDiskCache bool, diskCachePath *core.
|
||||
|
||||
func (f *FrontendQt) setIsAutostartOn() {
|
||||
// GODT-1507 Windows: autostart needs to be created after Qt is initialized.
|
||||
// GODT-1206: if preferences file says it should be on enable it here.
|
||||
f.firstTimeAutostart.Do(func() {
|
||||
if !f.bridge.IsFirstStart() {
|
||||
shouldAutostartBeOn := f.settings.GetBool(settings.AutostartKey)
|
||||
if f.bridge.IsFirstStart() || shouldAutostartBeOn {
|
||||
if err := f.bridge.EnableAutostart(); err != nil {
|
||||
f.log.WithField("prefs", shouldAutostartBeOn).WithError(err).Error("Failed to enable first autostart")
|
||||
}
|
||||
return
|
||||
}
|
||||
if err := f.bridge.EnableAutostart(); err != nil {
|
||||
f.log.WithError(err).Error("Failed to enable autostart")
|
||||
}
|
||||
})
|
||||
f.qml.SetIsAutostartOn(f.bridge.IsAutostartEnabled())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user