-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix GH#24998: cannot use shortcut (show-corrupted-measures) #25011
base: master
Are you sure you want to change the base?
Fix GH#24998: cannot use shortcut (show-corrupted-measures) #25011
Conversation
3a3129b
to
cfc9792
Compare
4abdf23
to
6ba7955
Compare
6ba7955
to
fdb875e
Compare
Anything still for me to do on this one? |
Not everything from #25011 (comment) has been addressed yet.
|
Such an optimization would mean: if it has been detected to be corrupt once, there's no need to check again, unless that corruption got fixed meanwhile, whoch could have happened only if it got modified since the last check. Hmm, maybe not. Maybe I'm over-thinking this. Initialize a new That in turn seems to ask for another menu entry to trigger a recheck and with that fullfill your 1st point. Your 2nd point, disabling the sanity check on autosave, seems quite easy to do too. See what I've done now... |
5a32d9f
to
a9b1394
Compare
Anything else I'd need to do on this? |
a9b1394
to
6f5e4ba
Compare
src/appshell/view/appmenumodel.cpp
Outdated
@@ -457,7 +457,8 @@ MenuItem* AppMenuModel::makeDiagnosticsMenu() | |||
makeMenuItem("color-segment-shapes"), | |||
makeMenuItem("show-skylines"), | |||
makeMenuItem("show-system-bounding-rects"), | |||
makeMenuItem("show-corrupted-measures") | |||
makeMenuItem("show-corrupted-measures"), | |||
makeMenuItem("check-sanity") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would now only be available in dev mode, while it would be useful in normal mode too. Let's make the Diagnostics > Engraving menu available in normal mode too; in normal mode, it should only contain the show-corrupted-measures
and check-sanity
actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (globalConfiguration()->devModeEnabled()) {
// show all those submenus, including the full version of the Engraving submenu
} else {
// show only an Engraving submenu, that contains only `show-corrupted-measures` and `check-for-score-corruptions
}
Also, do we actually register a handle for the new |
67d0940
to
5fef69e
Compare
You lost me, I'm affraid, register what, where, why? |
With the What you'd need to do concretely, is:
This means, that whenever the For implementing this method, you could call |
Isn't that done already in // Register engraving debugging options actions
for (auto& [code, member] : engravingDebuggingActions) {
dispatcher()->reg(this, code, [this, member = member]() {
EngravingDebuggingOptions options = engravingConfiguration()->debuggingOptions();
options.*member = !(options.*member);
engravingConfiguration()->setDebuggingOptions(options);
});
} |
For |
As by that time the score is open already, there's no point in asking whether or not to open the score anyway. But I guess you lost me completly here... |
Indeed, it would be only an OK button in this case. So, the idea is, this new "Check for score corruptors" command would call What we could additionally do, is showing an info dialog when the score is not corrupted. |
5fef69e
to
9cff3f3
Compare
c4685e3
to
1412c23
Compare
Like this? |
1412c23
to
2443074
Compare
2443074
to
8f2befb
Compare
Rebased to resolve a merge conflict. Please review |
Resolves: #24998