diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-15 08:03:12 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 09:07:54 +1000 |
commit | ffda2839e0337262788556ba6b60ed9a5aef4a46 (patch) | |
tree | f0c612375670f875988c50c8284ff0ead88f03ca /pkg/gui/gui.go | |
parent | 28208e83644b94008ab9637dcdc95461faf5930a (diff) |
remove anonymous reporting popup cos we dont do it anymore anyway
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 0adc03395..d8619f75d 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -336,9 +336,6 @@ func (gui *Gui) Run() error { } popupTasks := []func(chan struct{}) error{} - if gui.Config.GetUserConfig().GetString("reporting") == "undetermined" { - popupTasks = append(popupTasks, gui.promptAnonymousReporting) - } configPopupVersion := gui.Config.GetUserConfig().GetInt("StartupPopupVersion") // -1 means we've disabled these popups if configPopupVersion != -1 && configPopupVersion < StartupPopupVersion { @@ -478,23 +475,6 @@ func (gui *Gui) showShamelessSelfPromotionMessage(done chan struct{}) error { }) } -func (gui *Gui) promptAnonymousReporting(done chan struct{}) error { - return gui.ask(askOpts{ - returnToView: nil, - returnFocusOnClose: true, - title: gui.Tr.SLocalize("AnonymousReportingTitle"), - prompt: gui.Tr.SLocalize("AnonymousReportingPrompt"), - handleConfirm: func() error { - done <- struct{}{} - return gui.Config.WriteToUserConfig("reporting", "on") - }, - handleClose: func() error { - done <- struct{}{} - return gui.Config.WriteToUserConfig("reporting", "off") - }, - }) -} - func (gui *Gui) goEvery(interval time.Duration, stop chan struct{}, function func() error) { go func() { ticker := time.NewTicker(interval) |