You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My initial impulse was to just remove the early return in SetOnClosed, but I suppose it's there for a reason (which I don't see right now), so I didn''t open a PR.
The text was updated successfully, but these errors were encountered:
Checklist
Describe the bug
If
SetOnClosed
is called on aFileDialog
beforeShow
is called, the callback will not be called when the dialog is closed.How to reproduce
Run the example code, close the file dialog and see that
foo
is not printed to standard output.Screenshots
No response
Example code
Fyne version
2.4.4
Go compiler version
1.22.0
Operating system and version
MX Linux, I believe version 21; it's basically Debian
Additional Information
It works, if
SetOnClosed
is called afterShow
:The problem seems to be that
f.dialog == nil
is checked inSetOnClosed
, butf.dialog
is only set onceShow
is called.My initial impulse was to just remove the early return in
SetOnClosed
, but I suppose it's there for a reason (which I don't see right now), so I didn''t open a PR.The text was updated successfully, but these errors were encountered: