Fixed: tray bug on ubuntu & hide tray icon on linux

This commit is contained in:
Molunerfinn
2018-06-26 17:03:46 +08:00
parent ed187f4438
commit 62b0c2113c
3 changed files with 27 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ export default {
setDefaultPicBed (type) {
db.read().set('picBed.current', type).write()
this.defaultPicBed = type
this.$electron.ipcRenderer.send('updateDefaultPicBed')
this.$electron.ipcRenderer.send('updateDefaultPicBed', type)
const successNotification = new window.Notification('设置默认图床', {
body: '设置成功'
})