Disable image preload
This commit is contained in:
parent
6154b83720
commit
00349b5b33
5 changed files with 0 additions and 58 deletions
21
app/main.ts
21
app/main.ts
|
@ -2222,27 +2222,6 @@ ipc.on('delete-all-data', () => {
|
|||
}
|
||||
});
|
||||
|
||||
ipc.on('get-built-in-images', async () => {
|
||||
if (!mainWindow) {
|
||||
getLogger().warn('ipc/get-built-in-images: No mainWindow!');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const images = await attachments.getBuiltInImages();
|
||||
mainWindow.webContents.send('get-success-built-in-images', null, images);
|
||||
} catch (error) {
|
||||
if (mainWindow && mainWindow.webContents) {
|
||||
mainWindow.webContents.send('get-success-built-in-images', error.message);
|
||||
} else {
|
||||
getLogger().error(
|
||||
'Error handling get-built-in-images:',
|
||||
Errors.toLogFormat(error)
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
ipc.on('get-config', async event => {
|
||||
const theme = await getResolvedThemeSetting();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue