mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-16 18:25:04 -06:00
SDA-4092: Clean Buttons (#1768)
This commit is contained in:
parent
828df78d57
commit
f8db9e57d7
@ -322,7 +322,11 @@ ipcMain.on(
|
||||
* This gets called from mana, when user logs out
|
||||
*/
|
||||
case apiCmds.closeAllWrapperWindows:
|
||||
const main = windowHandler.getMainWindow();
|
||||
terminateC9Shell();
|
||||
|
||||
main?.setThumbarButtons([]);
|
||||
presenceStatus.updateSignedOutContextMenu();
|
||||
windowHandler.closeAllWindows();
|
||||
break;
|
||||
case apiCmds.setZoomLevel:
|
||||
|
@ -213,6 +213,18 @@ class PresenceStatus {
|
||||
tray?.setContextMenu(contextMenu);
|
||||
};
|
||||
|
||||
public updateSignedOutContextMenu = () => {
|
||||
const tray = presenceStatusStore.getCurrentTray();
|
||||
const contextDefault = Menu.buildFromTemplate([
|
||||
{
|
||||
label: i18n.t('Quit Symphony')(),
|
||||
click: () => app.quit(),
|
||||
},
|
||||
]);
|
||||
|
||||
tray?.setContextMenu(contextDefault);
|
||||
};
|
||||
|
||||
private handlePresenceChange = (
|
||||
statusCategory: EPresenceStatusCategory,
|
||||
statusGroup: EPresenceStatusGroup,
|
||||
|
Loading…
Reference in New Issue
Block a user