0
當使用plasmoidviewer
進行測試時,如果編輯了svg,則在編輯它後第二次運行時,圖像將不會更新。如何在Plasma5中重新加載緩存的Svg/SvgItem?
PlasmaCore.FrameSvgItem {
imagePath: plasmoid.file("", "images/dragarea.svg")
}
當使用plasmoidviewer
進行測試時,如果編輯了svg,則在編輯它後第二次運行時,圖像將不會更新。如何在Plasma5中重新加載緩存的Svg/SvgItem?
PlasmaCore.FrameSvgItem {
imagePath: plasmoid.file("", "images/dragarea.svg")
}
您需要在運行plasmoidviewer之前像這樣刪除緩存。
rm ~/.cache/plasma-svgelements-*
plasmoidviewer -a package -l topedge -f horizontal -x 0 -y 0