From 998b5cb54ad23be1f6df0ee8abd08af5614f38db Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 24 Sep 2020 12:24:48 +0200 Subject: [feat] send cmd flags to the go backend Also disable autostart if manual quit, remove custom printer that was used for i18n and disable previous autostart if -disable-autostart We didn't disable autostart after the migration to qt. - Resolves: #355 #289 --- pkg/config/gui.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'pkg/config') diff --git a/pkg/config/gui.go b/pkg/config/gui.go index 7f2515c..3df1197 100644 --- a/pkg/config/gui.go +++ b/pkg/config/gui.go @@ -20,8 +20,6 @@ import ( "os" "path" "time" - - "golang.org/x/text/message" ) const ( @@ -39,16 +37,14 @@ type Config struct { file struct { LastReminded time.Time Donated time.Time - SelectGateway bool Obfs4 bool UserStoppedVPN bool DisableAustostart bool } - SelectGateway bool Obfs4 bool DisableAustostart bool StartVPN bool - Printer *message.Printer + SkipLaunch bool } // ParseConfig reads the configuration from the configuration file @@ -64,7 +60,6 @@ func ParseConfig() *Config { err = dec.Decode(&conf.file) } - conf.SelectGateway = conf.file.SelectGateway conf.Obfs4 = conf.file.Obfs4 conf.DisableAustostart = conf.file.DisableAustostart conf.StartVPN = !conf.file.UserStoppedVPN -- cgit v1.2.3