File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,6 +163,29 @@ PlasmoidItem {
163163 anchors .fill : parent
164164 spacing: 0
165165
166+ // Header bar: title + refresh button
167+ RowLayout {
168+ Layout .fillWidth : true
169+ Layout .leftMargin : Kirigami .Units .smallSpacing
170+ Layout .rightMargin : Kirigami .Units .smallSpacing
171+ Layout .topMargin : Kirigami .Units .smallSpacing
172+ PlasmaExtras .Heading {
173+ Layout .fillWidth : true
174+ level: 4
175+ text: " AirPlay Devices"
176+ }
177+ Controls .ToolButton {
178+ icon .name : " view-refresh"
179+ display: Controls .ToolButton .IconOnly
180+ Controls .ToolTip .text : " Refresh devices"
181+ Controls .ToolTip .visible : hovered
182+ enabled: ! root .isBusy
183+ onClicked: {
184+ root .runCtl ([" discover" ], " discover" )
185+ }
186+ }
187+ }
188+
166189 Kirigami .Separator {
167190 Layout .fillWidth : true
168191 }
You can’t perform that action at this time.
0 commit comments