Skip to content

Fix file picker overwriting other files without warning#277

Merged
lhecker merged 2 commits into
microsoft:mainfrom
Ride-A-Pig:bug-fix
May 26, 2025
Merged

Fix file picker overwriting other files without warning#277
lhecker merged 2 commits into
microsoft:mainfrom
Ride-A-Pig:bug-fix

Conversation

@Ride-A-Pig

Copy link
Copy Markdown
Contributor

Bug Fixed.
The FilePicker will just replace other files without warning if the doc's name is different from the name entered by the user.

@lhecker lhecker 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.

The actual bug in the old code is that the sys::file_id line is missing an ! in front of it. But...

Yeah, why did I overcomplicate this? 🤔

Yoink!

@lhecker lhecker changed the title Fix the bug of FilePicker Fix file picker overwriting other files without warning May 26, 2025
@lhecker lhecker merged commit 701b3a3 into microsoft:main May 26, 2025
1 check passed
@lhecker lhecker added C-bug It shouldn't be doing this. P-high High priority, fix ASAP. Example: The application crashes. labels May 26, 2025
@Ride-A-Pig Ride-A-Pig deleted the bug-fix branch May 26, 2025 16:32
@Ride-A-Pig

Ride-A-Pig commented May 26, 2025

Copy link
Copy Markdown
Contributor Author

The actual bug in the old code is that the sys::file_id line is missing an ! in front of it. But...

Yeah, why did I overcomplicate this? 🤔

Yoink!

Besides that part, it seems impossible to get the file_id when a new document has not been saved yet.

diabloproject pushed a commit to diabloproject/edit that referenced this pull request May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bug It shouldn't be doing this. P-high High priority, fix ASAP. Example: The application crashes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants