Don't allow opening an invalid fullscreen episode image

This MouseArea is still enabled even if no entry is playing, which
results in a fun bug where you can tap the image and nothing ever shows
up.

If we're not playing anything, disable the MouseArea. Also disable the
pointing hand cursor in this case, too.
This commit is contained in:
Joshua Goins 2025-01-29 16:57:06 -05:00 committed by Bart De Vries
parent 0bbd895929
commit ef64dfb8aa
2 changed files with 4 additions and 2 deletions

View File

@ -100,7 +100,8 @@ FocusScope {
visible: headerBar.handlePosition === 0
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
cursorShape: AudioManager.entry ? Qt.PointingHandCursor : Qt.ArrowCursor
enabled: AudioManager.entry
onClicked: {
headerBar.openFullScreenImage();
}

View File

@ -143,7 +143,8 @@ FocusScope {
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
cursorShape: AudioManager.entry ? Qt.PointingHandCursor : Qt.ArrowCursor
enabled: AudioManager.entry
onClicked: {
openFullScreenImage();
}