diff options
author | Moritz Haase <Moritz.Haase@bmw.de> | 2022-03-30 09:11:11 +0200 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-30 20:13:43 +1100 |
commit | e35ab3c5fe37340a624a0cd87b9e49fe27d369b0 (patch) | |
tree | 1333cb578ccfe5f763e16d285ef868b53870cb9f /pkg | |
parent | 8fb2acc2244ae0364fa20288bfcf70deed3ae974 (diff) |
pkg/gui: Use 'alert' popups instead of 'confirm' popups where appropriate
Invocations of 'IPopupHandler::Confirm()' that use neither 'HandleConfirm' nor
'HandleClose' can be replaced by 'Alert()'.
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/gui.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index ca13be428..caa1a6afe 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -898,10 +898,7 @@ func (gui *Gui) startBackgroundFetch() { } err := gui.backgroundFetch() if err != nil && strings.Contains(err.Error(), "exit status 128") && isNew { - _ = gui.c.Confirm(types.ConfirmOpts{ - Title: gui.c.Tr.NoAutomaticGitFetchTitle, - Prompt: gui.c.Tr.NoAutomaticGitFetchBody, - }) + _ = gui.c.Alert(gui.c.Tr.NoAutomaticGitFetchTitle, gui.c.Tr.NoAutomaticGitFetchBody) } else { gui.goEvery(time.Second*time.Duration(userConfig.Refresher.FetchInterval), gui.stopChan, func() error { err := gui.backgroundFetch() |