From d3b8041d11924f1f3e64c350fc2afdf461c4bde8 Mon Sep 17 00:00:00 2001 From: atavism Date: Mon, 16 Dec 2024 11:34:41 -0800 Subject: [PATCH] updates to CLI client --- desktop/app/app.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desktop/app/app.go b/desktop/app/app.go index 0ba46b06f..d4cbcf3b6 100644 --- a/desktop/app/app.go +++ b/desktop/app/app.go @@ -97,7 +97,7 @@ func NewApp() (*App, error) { // initialize app config and flags based on environment variables flags, err := initializeAppConfig() if err != nil { - return nil, fmt.Errorf("failed to initialize app config: %w", err) + return nil, fmt.Errorf("failed to initialize app config: %v", err) } return NewAppWithFlags(flags, flags.ConfigDir) } @@ -379,6 +379,10 @@ func (app *App) afterStart(cl *flashlightClient.Client) { go app.proClient.DesktopPaymentMethods(ctx) go app.fetchDeviceLinkingCode(ctx) + if app.settings.GetSystemProxy() { + app.SysproxyOn() + } + app.OnSettingChange(settings.SNSystemProxy, func(val interface{}) { enable := val.(bool) if enable {