新增当列表文件损坏时对损坏文件的备份
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const { mainOn, NAMES: { mainWindow: ipcMainWindowNames } } = require('../../common/ipc')
|
||||
const { dialog } = require('electron')
|
||||
|
||||
|
||||
mainOn(ipcMainWindowNames.show_dialog, (event, { type, message, detail }) => {
|
||||
if (!global.modules.mainWindow) throw new Error('mainWindow is undefined')
|
||||
dialog.showMessageBoxSync(global.modules.mainWindow, {
|
||||
type,
|
||||
message,
|
||||
detail,
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user