bar: fix tray icons
This commit is contained in:
parent
eb367cea43
commit
16dcc07859
2 changed files with 13 additions and 5 deletions
|
|
@ -34,7 +34,15 @@ MouseArea {
|
||||||
id: icon
|
id: icon
|
||||||
|
|
||||||
visible: !BarConfig.tray.recolourIcons
|
visible: !BarConfig.tray.recolourIcons
|
||||||
source: root.modelData.icon
|
source: {
|
||||||
|
let icon = root.modelData.icon;
|
||||||
|
if (icon.includes("?path=")) {
|
||||||
|
const [name, path] = icon.split("?path=");
|
||||||
|
icon = `file://${path}/${name.slice(name.lastIndexOf("/") + 1)}.png`;
|
||||||
|
}
|
||||||
|
return icon;
|
||||||
|
}
|
||||||
|
asynchronous: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,10 +57,10 @@ Singleton {
|
||||||
}
|
}
|
||||||
|
|
||||||
component AccessPoint: QtObject {
|
component AccessPoint: QtObject {
|
||||||
property string ssid
|
required property string ssid
|
||||||
property int strength
|
required property int strength
|
||||||
property int frequency
|
required property int frequency
|
||||||
property bool active
|
required property bool active
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue