mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-08 21:38:13 -05:00
Fixed: updateDefaultPicBed bug
This commit is contained in:
parent
62b0c2113c
commit
4d55ac941f
@ -385,6 +385,7 @@ ipcMain.on('updateCustomLink', (evt, oldLink) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
ipcMain.on('updateDefaultPicBed', (evt) => {
|
ipcMain.on('updateDefaultPicBed', (evt) => {
|
||||||
|
if (process.platform === 'darwin' || process.platform === 'win32') {
|
||||||
const types = picBed.map(item => item.type)
|
const types = picBed.map(item => item.type)
|
||||||
let submenuItem = contextMenu.items[2].submenu.items
|
let submenuItem = contextMenu.items[2].submenu.items
|
||||||
submenuItem.forEach((item, index) => {
|
submenuItem.forEach((item, index) => {
|
||||||
@ -393,6 +394,9 @@ ipcMain.on('updateDefaultPicBed', (evt) => {
|
|||||||
item.click() // It's a bug which can not set checked status
|
item.click() // It's a bug which can not set checked status
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
ipcMain.on('autoStart', (evt, val) => {
|
ipcMain.on('autoStart', (evt, val) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user