Ver V0.1.14 Add automatic ui refresh
This commit is contained in:
+3
-1
@@ -444,6 +444,8 @@ async function runBackgroundSync() {
|
||||
}
|
||||
}
|
||||
|
||||
ipcMain.handle('app:get-version', () => app.getVersion());
|
||||
|
||||
ipcMain.handle('mail:get-account', async () => {
|
||||
const account = await readAccount();
|
||||
return account ? publicAccount(account) : null;
|
||||
@@ -813,7 +815,7 @@ function createWindow() {
|
||||
height: 920,
|
||||
minWidth: 920,
|
||||
minHeight: 680,
|
||||
title: 'ep-mail',
|
||||
title: `ep-mail v${app.getVersion()}`,
|
||||
backgroundColor: '#f4f5f1',
|
||||
show: false,
|
||||
autoHideMenuBar: true,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('daybreakMail', {
|
||||
getAppVersion: () => ipcRenderer.invoke('app:get-version'),
|
||||
getAccount: () => ipcRenderer.invoke('mail:get-account'),
|
||||
listAccounts: () => ipcRenderer.invoke('mail:list-accounts'),
|
||||
selectAccount: id => ipcRenderer.invoke('mail:select-account', id),
|
||||
|
||||
Reference in New Issue
Block a user