Skip to content

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

Closed

Description

@GF-Huang

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.

Activity

  1. ghost1372 commented on May 17, 2021

    @ghost1372
    Member

    You should write return true

  2. GF-Huang commented on May 17, 2021

    @GF-Huang
    MemberAuthor

    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.

  3. GF-Huang commented on Jun 6, 2021

    @GF-Huang
    MemberAuthor

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

    image

  4. added a commit that references this issue on Mar 28, 2024
    a6a78f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址