mirror of
https://github.com/element-hq/element-desktop
synced 2025-03-15 08:53:31 +01:00
Implement getMaySendNotifications
This commit is contained in:
parent
dcd6e3f8b9
commit
025ae94df2
@ -47,6 +47,7 @@ const fs = require('fs');
|
|||||||
const afs = fs.promises;
|
const afs = fs.promises;
|
||||||
|
|
||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
|
|
||||||
let keytar;
|
let keytar;
|
||||||
try {
|
try {
|
||||||
keytar = require('keytar');
|
keytar = require('keytar');
|
||||||
@ -351,6 +352,9 @@ ipcMain.on('ipcCall', async function(ev, payload) {
|
|||||||
global.mainWindow.autoHideMenuBar = Boolean(args[0]);
|
global.mainWindow.autoHideMenuBar = Boolean(args[0]);
|
||||||
global.mainWindow.setMenuBarVisibility(!args[0]);
|
global.mainWindow.setMenuBarVisibility(!args[0]);
|
||||||
break;
|
break;
|
||||||
|
case 'getMaySendNotifications':
|
||||||
|
ret = !global.isDoNotDisturb;
|
||||||
|
break;
|
||||||
case 'getAppVersion':
|
case 'getAppVersion':
|
||||||
ret = app.getVersion();
|
ret = app.getVersion();
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user