summaryrefslogtreecommitdiff
path: root/pkg/config/gui.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2020-09-24 12:24:48 +0200
committerRuben Pollan <meskio@sindominio.net>2020-09-24 16:50:04 +0200
commit998b5cb54ad23be1f6df0ee8abd08af5614f38db (patch)
treeaafb1c6f11ba23da120b29170ed712d6a07d5336 /pkg/config/gui.go
parent3a74c28cce41fe783d9dde707ebb6de941d5cf0a (diff)
[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
Diffstat (limited to 'pkg/config/gui.go')
-rw-r--r--pkg/config/gui.go7
1 files changed, 1 insertions, 6 deletions
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