Skip to content

Commit

Permalink
updates to CLI client
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Dec 16, 2024
1 parent d6f571d commit d3b8041
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion desktop/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d3b8041

Please sign in to comment.