Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ StyledPopupView {
property size cellSize
property bool drawGrid

readonly property bool isDragInProgress: masterPalette.state == "drag" || customPalette.state == "drag"

property int maxHeight: 400
contentHeight: column.implicitHeight
contentWidth: 300
Expand Down
13 changes: 12 additions & 1 deletion src/palette/qml/MuseScore/Palette/internal/PaletteTree.qml
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,18 @@ StyledListView {

onClosed: {
enablePaletteAnimations = false;
palettePopup.active = false;
// Deactivating the loader while dragging will cause a crash (#25848), so defer the deactivation...
if (!moreElementsPopup.isDragInProgress) {
palettePopup.active = false;
}
}

onIsDragInProgressChanged: {
const deactivationWasDeferred = !moreElementsPopup.isOpened && palettePopup.active
if (!moreElementsPopup.isDragInProgress && deactivationWasDeferred) {
// We're now safe to deactivate the loader...
palettePopup.active = false
}
}

function scrollToPopupBottom() {
Expand Down