Skip to content

[BUGFIX] AdonisWindow not being able to handle setting the IconProperty manually#100

Merged
benruehl merged 1 commit intobenruehl:masterfrom
Insire:fix-adoniswindow-icon
Jun 9, 2020
Merged

[BUGFIX] AdonisWindow not being able to handle setting the IconProperty manually#100
benruehl merged 1 commit intobenruehl:masterfrom
Insire:fix-adoniswindow-icon

Conversation

@Insire
Copy link
Copy Markdown
Contributor

@Insire Insire commented Jun 4, 2020

When setting the IconProperty of a (Adonis-)Window instance, a System.UriFormatException is being thrown from this line, when the ToString method of that object doesnt evaluate to a valid Uri.

Such is the case for objects that represent an actual image, such as any class that derives from ImageSource.

This PR takes those cases into account and skips the fallback logic that tries turning them into valid URIs.

@benruehl
Copy link
Copy Markdown
Owner

benruehl commented Jun 9, 2020

Although I don't have an actual use case for this on my mind, it makes sense to me that this should be supported.

Thanks a lot for contributing again!

@benruehl benruehl added the bug Something isn't working label Jun 9, 2020
@benruehl benruehl added this to the 1.16 milestone Jun 9, 2020
@benruehl benruehl merged commit f58d318 into benruehl:master Jun 9, 2020
@Insire Insire deleted the fix-adoniswindow-icon branch June 10, 2020 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants