summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-15 16:38:16 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-15 18:01:43 +1000
commit0822a9296c1e5f4c43b30b60d40ce870057f3494 (patch)
treeaa50d3fdbd6cf384c222a4b0900bf3527c262a40 /pkg/gui/gui.go
parentd9fa02c53bb9b401f1b5ca07e8ed239862052a42 (diff)
rename
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index ec582e131..0adc03395 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -468,7 +468,7 @@ func (gui *Gui) showShamelessSelfPromotionMessage(done chan struct{}) error {
return gui.Config.WriteToUserConfig("startupPopupVersion", StartupPopupVersion)
}
- return gui.createConfirmationPanel(createConfirmationPanelOpts{
+ return gui.ask(askOpts{
returnToView: nil,
returnFocusOnClose: true,
title: gui.Tr.SLocalize("ShamelessSelfPromotionTitle"),
@@ -479,7 +479,7 @@ func (gui *Gui) showShamelessSelfPromotionMessage(done chan struct{}) error {
}
func (gui *Gui) promptAnonymousReporting(done chan struct{}) error {
- return gui.createConfirmationPanel(createConfirmationPanelOpts{
+ return gui.ask(askOpts{
returnToView: nil,
returnFocusOnClose: true,
title: gui.Tr.SLocalize("AnonymousReportingTitle"),
@@ -518,7 +518,7 @@ func (gui *Gui) startBackgroundFetch() {
}
err := gui.fetch(false)
if err != nil && strings.Contains(err.Error(), "exit status 128") && isNew {
- _ = gui.createConfirmationPanel(createConfirmationPanelOpts{
+ _ = gui.ask(askOpts{
returnToView: gui.g.CurrentView(),
returnFocusOnClose: true,
title: gui.Tr.SLocalize("NoAutomaticGitFetchTitle"),