GODT-2213: Don't unnecessarily enable/disable autostart

This commit is contained in:
James Houlahan
2022-12-19 08:29:57 +00:00
committed by Romain Le Jeune
parent 3499fbd758
commit e4b81063cb
8 changed files with 43 additions and 12 deletions

View File

@ -152,13 +152,13 @@ func TestVault_Settings_Autostart(t *testing.T) {
s := newVault(t)
// Check the default autostart setting.
require.Equal(t, false, s.GetAutostart())
require.Equal(t, true, s.GetAutostart())
// Modify the autostart setting.
require.NoError(t, s.SetAutostart(true))
require.NoError(t, s.SetAutostart(false))
// Check the new autostart setting.
require.Equal(t, true, s.GetAutostart())
require.Equal(t, false, s.GetAutostart())
}
func TestVault_Settings_AutoUpdate(t *testing.T) {

View File

@ -78,7 +78,7 @@ func newDefaultSettings(gluonDir string) Settings {
ColorScheme: "",
ProxyAllowed: true,
ShowAllMail: true,
Autostart: false,
Autostart: true,
AutoUpdate: true,
LastVersion: "0.0.0",