[vlc-devel] [PATCH 14/22] qml: cancel closes the playlist and restore focus in medialib view
Pierre Lamot
pierre at videolabs.io
Fri Feb 14 11:23:49 CET 2020
---
modules/gui/qt/medialibrary/qml/MainDisplay.qml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/gui/qt/medialibrary/qml/MainDisplay.qml b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
index b346d409c2..2524b657fb 100644
--- a/modules/gui/qt/medialibrary/qml/MainDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
@@ -235,6 +235,10 @@ Widgets.NavigableFocusScope {
navigationLeftItem: stackView
navigationUpItem: sourcesBanner
navigationDownItem: miniPlayer.expanded ? miniPlayer : undefined
+ navigationCancel: function() {
+ rootWindow.playlistVisible = false
+ stackView.forceActiveFocus()
+ }
Rectangle {
anchors {
--
2.17.1
More information about the vlc-devel
mailing list