mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-22 05:29:44 +02:00
remove anonymous reporting popup cos we dont do it anymore anyway
This commit is contained in:
parent
28208e8364
commit
ffda2839e0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user