Skip to content

fix bug, change close#92

Merged
SKProCH merged 2 commits intoAvaloniaUtils:mainfrom
Coloryr:main
Nov 26, 2025
Merged

fix bug, change close#92
SKProCH merged 2 commits intoAvaloniaUtils:mainfrom
Coloryr:main

Conversation

@Coloryr
Copy link
Copy Markdown
Contributor

@Coloryr Coloryr commented Nov 25, 2025

fix close dialog bug when IsMultipleDialogsEnabled=true

fix close dialog bug when `IsMultipleDialogsEnabled=true`
///// <summary>Close a modal dialog.</summary>
///// <param name="dialogIdentifier">of the instance where the dialog should be closed. Typically this will match an identifier set in XAML.</param>
//public static void Close(string? dialogIdentifier)
// => Close(dialogIdentifier, null);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a breaking change. Probably this is needs to use fallback if there is an single dialog open currently.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public static void Close(string? dialogIdentifier, object? parameter = null, object? content = null)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine source-wise, but this is still a binary breaking change. Any library that use the old removed Close methods must be recompiled against the new version, or using it with the new DialogHost version will throw the MethodMissingException.

@SKProCH SKProCH merged commit 87d6df5 into AvaloniaUtils:main Nov 26, 2025
@SKProCH
Copy link
Copy Markdown
Member

SKProCH commented Nov 26, 2025

I've messed up with git, and accidently pushed your commits to my main branch essentially merging this PR. Also, i've rollbacked the close methods removal to avoid breaking change.

@Coloryr
Copy link
Copy Markdown
Contributor Author

Coloryr commented Nov 27, 2025

I've messed up with git, and accidently pushed your commits to my main branch essentially merging this PR. Also, i've rollbacked the close methods removal to avoid breaking change.

ok

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

Successfully merging this pull request may close these issues.

2 participants