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