Commit a802bd59 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Make sure first item is focused when plasmoid is opened

parent 14ee0da2
Pipeline #24900 passed with stage
in 33 minutes and 42 seconds
......@@ -20,6 +20,7 @@ import QtQuick 2.1
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.plasmoid 2.0
Item {
id: kdevelopSessions
......@@ -119,6 +120,7 @@ Item {
var service = sessionsSource.serviceForSource(model["DataEngineSource"])
var operation = service.operationDescription("open")
var job = service.startOperationCall(operation)
plasmoid.expanded = false
}
PlasmaComponents.Label {
......@@ -181,4 +183,11 @@ Item {
flickableItem: view
}
Plasmoid.onExpandedChanged: {
if (plasmoid.expanded) {
view.currentIndex = 0;
view.highlightItem.opacity = 1;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment