Ver V0.1.14 Add automatic ui refresh

This commit is contained in:
2026-10-06 23:40:11 +03:00
parent e50073ab4c
commit 2becdcccd7
6 changed files with 88 additions and 38 deletions
+3 -1
View File
@@ -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
View File
@@ -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),