Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GrowlInfo.ActionBeforeClose not called when user click the close button #833

Closed
GF-Huang opened this issue May 17, 2021 · 3 comments
Closed

Comments

@GF-Huang
Copy link
Member

Describe the bug

var info = new GrowlInfo {
    ShowDateTime = false,
    Message = "xxx",
    ActionBeforeClose = isConfirmed => Debug.WriteLine("xxx")
};
Growl.Success(info);

Expected behavior
No matter auto close or user click, should always called.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • .net: 5
  • IDE vs2019
  • Version 3.1.0

Additional context
Add any other context about the problem here.

@ghost1372
Copy link
Member

You should write return true

@GF-Huang
Copy link
Member Author

GF-Huang commented May 17, 2021

You should write return true

Yeah, I forget write it, but this is a example. If the ActionBeforeClose not called, it's meaningless no matter return true or not. The return value just for determine it to close or not.

@NaBian NaBian closed this as completed in a6a78f4 May 20, 2021
@GF-Huang
Copy link
Member Author

GF-Huang commented Jun 6, 2021

@NaBian Hi, I found that if clear by right click context menu, the ActionBeforeClose also not called. Does commit a6a78f4 also fix this?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants