Skip to content

fix: FilePickerSelectedFilesArray.Count shouldn't have a throwing setter #6885 - #13960

Merged
jeromelaban merged 2 commits into
unoplatform:masterfrom
mcNets:filePicker
Oct 16, 2023
Merged

jeromelaban merged 2 commits into
unoplatform:masterfrom
mcNets:filePicker

Conversation

@mcNets

@mcNets mcNets commented Oct 12, 2023 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): closes #6885

#6885

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

It's thowing an InvalidOperationException:

set => throw new InvalidOperationException();

What is the new behavior?

There is no setter.

Copilot Summary

🤖 Generated by Copilot at 6fecc1d

Fix a bug in FileOpenPicker on UWP by commenting out the Count setter in FilePickerSelectedFilesArray. This prevents an exception when the array is modified by the IList<T> interface.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

#6885

@Youssef1313 Youssef1313 left a comment

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.

LGTM. You can remove the line instead of commenting it though

@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Oct 12, 2023
@Youssef1313

Copy link
Copy Markdown
Member

@mcNets you will need to follow conventional commits for all commits in the PR. You could also squash them into a single commit if you want

@jeromelaban
jeromelaban enabled auto-merge October 16, 2023 12:13
@jeromelaban
jeromelaban merged commit 449f2fe into unoplatform:master Oct 16, 2023
@welcome

welcome Bot commented Oct 16, 2023

Copy link
Copy Markdown

Congrats on your first pull-request! We ❤ the people who are involved in this project, and we’d love to pay it forward by sending you some swag. If you have any feedback (or ideas how to improve Uno as a open-source project) please open a feedback issue.
giphy
Merci beaucoup 👋

@mcNets
mcNets deleted the filePicker branch October 16, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FilePickerSelectedFilesArray.Count shouldn't have a throwing setter

4 participants