Fix #23898: Make MS recognise the .mscz~ filetype
Resolves: #23898 https://github.com/musescore/MuseScore/issues/23898
It adds the .mscz~ extension to the file open dialog filters and updates the isMuseScoreFile validator to recognize backup files as valid ZIP containers.
[ X] I signed the CLA [ X] The title of the PR describes the problem it addresses [X ] Each commit's message describes its purpose and effects, and references the issue it resolves [X] If changes are extensive, there is a sequence of easily reviewable commits [ X] The code in the PR follows the coding rules [ X] There are no unnecessary changes [X ] The code compiles and runs on my machine, preferably after each commit individually [ X] I created a unit test or vtest to verify the changes I made (if applicable)
There is a reason that MuseScore does not open these by default - to prevent people from opening backup copies accidentally. So I do not think it is appropriate to do this.
What might be acceptable is to leave them out of the filter but allow them to be opened directly but with a warning dialog. But that is something to discuss with the design team first, I think, by commenting in the issue thread.
There is a conflict in .gitignore
You'd also need to add that extension somewhere here: https://github.com/musescore/MuseScore/blob/baddeb9ed85d68f15435eb47b3051d2bc3f02a47/buildscripts/packaging/Windows/Installer/WIX.template.in#L113-L143 and here: https://github.com/musescore/MuseScore/blob/baddeb9ed85d68f15435eb47b3051d2bc3f02a47/buildscripts/packaging/macOS/Info.plist.in#L83-L130 and here: https://github.com/musescore/MuseScore/blob/baddeb9ed85d68f15435eb47b3051d2bc3f02a47/buildscripts/packaging/Linux%2BBSD/musescore.xml.in#L43-L63