From e35ab3c5fe37340a624a0cd87b9e49fe27d369b0 Mon Sep 17 00:00:00 2001 From: Moritz Haase Date: Wed, 30 Mar 2022 09:11:11 +0200 Subject: [PATCH] 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()'. --- pkg/gui/gui.go | 5 +---- 1 file changed, 1 insertion(+), 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()