-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#24908: Validate saved files and alert user #24911
base: master
Are you sure you want to change the base?
#24908: Validate saved files and alert user #24911
Conversation
9648983
to
13f2353
Compare
Do we want to limit this to Windows users only? |
I'd rather keep it for all OS |
@krasko78 Can you restart builds please? Linux build is missing |
Non-staff-members can't do that |
But there is an issue with the translatable strings, like subsequent trailing whitespace, which the Linux build stumbles accross Also a code style issue |
@Jojo-Schmitz How can I do the code style validation from inside Qt Creator or before I commit? |
The latter, running uncrustify locally, but I rather let GitHub CI let it do for me 😉 |
@bkunda @RomanPudashkin @cbjeukendrup @Jojo-Schmitz @wizofaus |
6a0c117
to
7ecb595
Compare
…e and only if unsuccessful to not degrade save times + code review changes
7ecb595
to
6fed602
Compare
If you're on Windows I have a batch file that can both check and fix all modified files, though you need to install a specific version of uncrustify. |
There's not much to wait, it fails quite fast |
It is building fine now and I am publishing the PR. Please make sure you've looked at the latest changes. Thanks. |
Thanks for tackling this problem @krasko78! Great to have a solution that will prevent this kind of file corruption. My only comment has to do with the UI copy and dialog design. To better align it with our existing corruption dialogs, and to simplify the messaging, I'd prefer to see the following: Then when "Show details" is clicked, the error message appears below (and the dialog expands accordingly): As I understand it, when a score file gets filled with 0s, it's no longer usable and in all cases needs to be re-saved. In this case, the messaging should be much simpler, and we should just give the user a button that triggers the OS save dialog ("Save a copy"). For bonus points, the "musescore.org" hyperlinked text should point directly to the relevant forum: https://musescore.org/en/forum/6 Let me know if this makes sense! |
@bkunda That is not 100% accurate. I will explain the problem in more detail later today (right now omw to an exam 🙂) |
Btw, should we say "corrupted" or "corrupt"? I believe we should use "corrupt" when we want the adjective. Native English speakers please advise. |
Resolves: #24908
Initial commit to demonstrate the idea and start refining it.