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,14 +385,18 @@ ipcMain.on('updateCustomLink', (evt, oldLink) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
ipcMain.on('updateDefaultPicBed', (evt) => {
|
ipcMain.on('updateDefaultPicBed', (evt) => {
|
||||||
const types = picBed.map(item => item.type)
|
if (process.platform === 'darwin' || process.platform === 'win32') {
|
||||||
let submenuItem = contextMenu.items[2].submenu.items
|
const types = picBed.map(item => item.type)
|
||||||
submenuItem.forEach((item, index) => {
|
let submenuItem = contextMenu.items[2].submenu.items
|
||||||
const result = db.read().get('picBed.current').value() === types[index]
|
submenuItem.forEach((item, index) => {
|
||||||
if (result) {
|
const result = db.read().get('picBed.current').value() === types[index]
|
||||||
item.click() // It's a bug which can not set checked status
|
if (result) {
|
||||||
}
|
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