cmd/tailscale/main: clean up unused event (#170)

Updates #cleanup

Signed-off-by: kari-ts <kari@tailscale.com>
pull/164/head
kari-ts 9 months ago committed by GitHub
parent 98fe1e86e5
commit 60b9884aa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -200,7 +200,6 @@ type SetLoginServerEvent struct {
// UIEvent types.
type (
ToggleEvent struct{}
ReauthEvent struct{}
BugEvent struct{}
WebAuthEvent struct{}
@ -451,9 +450,6 @@ func (a *App) runBackend(ctx context.Context) error {
a.getBugReportID(ctx, a.bugReport, fallbackLog)
case OAuth2Event:
go b.backend.Login(e.Token)
case ToggleEvent:
state.Prefs.WantRunning = !state.Prefs.WantRunning
go b.backend.SetPrefs(state.Prefs)
case BeExitNodeEvent:
state.Prefs.SetAdvertiseExitNode(bool(e))
go b.backend.SetPrefs(state.Prefs)

Loading…
Cancel
Save