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:
parent
0bbd895929
commit
ef64dfb8aa
@ -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();
|
||||
}
|
||||
|
@ -143,7 +143,8 @@ FocusScope {
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
cursorShape: AudioManager.entry ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||
enabled: AudioManager.entry
|
||||
onClicked: {
|
||||
openFullScreenImage();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user