Skip to content

Commit

Permalink
fix #23454: open dialogs with sync=false to avoid blocking events han…
Browse files Browse the repository at this point in the history
…dling
  • Loading branch information
RomanPudashkin committed Aug 12, 2024
1 parent 1a9fc23 commit 05e8c05
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/notation/internal/notationactioncontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ void NotationActionController::resetBeamMode()

void NotationActionController::openEditStyleDialog(const ActionData& args)
{
UriQuery uri("musescore://notation/style");
UriQuery uri("musescore://notation/style?sync=false");

if (args.count() > 0) {
uri.addParam("currentPageCode", Val(args.arg<QString>(0)));
Expand All @@ -1586,32 +1586,32 @@ void NotationActionController::openEditStyleDialog(const ActionData& args)

void NotationActionController::openPageSettingsDialog()
{
interactive()->open("musescore://notation/pagesettings");
interactive()->open("musescore://notation/pagesettings?sync=false");
}

void NotationActionController::openStaffProperties()
{
interactive()->open("musescore://notation/staffproperties");
interactive()->open("musescore://notation/staffproperties?sync=false");
}

void NotationActionController::openEditStringsDialog()
{
interactive()->open("musescore://notation/editstrings");
interactive()->open("musescore://notation/editstrings?sync=false");
}

void NotationActionController::openBreaksDialog()
{
interactive()->open("musescore://notation/breaks");
interactive()->open("musescore://notation/breaks?sync=false");
}

void NotationActionController::openTransposeDialog()
{
interactive()->open("musescore://notation/transpose");
interactive()->open("musescore://notation/transpose?sync=false");
}

void NotationActionController::openPartsDialog()
{
interactive()->open("musescore://notation/parts");
interactive()->open("musescore://notation/parts?sync=false");
}

muse::io::path_t NotationActionController::selectStyleFile(bool forLoad)
Expand Down

0 comments on commit 05e8c05

Please sign in to comment.