mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
add app version in settings page
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ipcMain, shell, dialog } from 'electron';
|
||||
import { ipcMain, shell, dialog, app } from 'electron';
|
||||
import { UtilsService } from '../services/utils.service';
|
||||
import { IpcRequest } from 'shared/models/ipc';
|
||||
import { getMainWindow } from '../main';
|
||||
@@ -40,3 +40,7 @@ ipcMain.on('save-file', async (event, request: IpcRequest<{filename?: string, fi
|
||||
UtilsService.getInstance().ipcSend(request.responceChannel, {success: true, data: res.filePath});
|
||||
})
|
||||
});
|
||||
|
||||
ipcMain.on("current-version", async (event, request: IpcRequest<void>) => {
|
||||
UtilsService.getInstance().ipcSend(request.responceChannel, {success: true, data: app.getVersion()});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user