microsoft / XmlNotepad

XML Notepad provides a simple intuitive User Interface for browsing and editing XML documents.
https://microsoft.github.io/XmlNotepad/
MIT License
966 stars 206 forks source link

File - New: Keeps the current file #380

Closed Pierre-de-la-Verre closed 2 months ago

Pierre-de-la-Verre commented 3 months ago

To reproduce:

In detail, it changed the filename in the background, but the file-content is still the same. Is this intended? Usually, a "new file" is empty (or based on a template), but not the same as before .. ??

lovettchris commented 2 months ago

Hmmm, sounds like a bug, thanks, the window should reset to a new state with no contents.

lovettchris commented 2 months ago

Ah, right, there is a fix here: https://github.com/microsoft/XmlNotepad/commit/1d700932d7f6cb9db0399c809659a107705aef97 but I have not included this in an official release yet.

lovettchris commented 2 months ago

Fixed in https://github.com/microsoft/XmlNotepad/releases/tag/2.9.0.9