electron如何在windows任务栏添加进度条

electron在windows任务栏添加进度条,需要用到setProgressBar()方法

const remote = require('electron').remote;
const win = remote.getCurrentWindow();//获取到当前窗口
win.setProgressBar(0.3);//0.3就是30%

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: