Skip to content

Commit

Permalink
Fixes #1143
Browse files Browse the repository at this point in the history
Adding TODO because of discussion on Slack
  • Loading branch information
Ragin-LundF committed Jun 27, 2020
1 parent b227a0a commit a4e589e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dialog/base.go
Expand Up @@ -186,6 +186,9 @@ func NewCustomConfirm(title, confirm, dismiss string, content fyne.CanvasObject,
callback func(bool), parent fyne.Window) Dialog {
d := &dialog{content: content, title: title, icon: nil, parent: parent}
d.callback = callback
// TODO: This is required to avoid confusion.
// Normally this function should only provide the dialog, but currently it is also displayed, which is wrong.
// For this case the ShowCustomConfirm() method was built.
d.sendResponse = true

d.dismiss = &widget.Button{Text: dismiss, Icon: theme.CancelIcon(),
Expand Down

0 comments on commit a4e589e

Please sign in to comment.