mirror of
https://github.com/finos/SymphonyElectron.git
synced 2026-10-25 14:20:04 -05:00
SDA-4961 - toggle setSkipTaskbar to ensure SDA remains hidden in the system tray (#2451)
This commit is contained in:
1 parent
9fcc04c7f5
commit
dfb5046b7b
4 files changed
+8
No files matched your search
@@ -151,6 +151,7 @@ if (!allowMultiInstance) {
|
||||
return mainWindow.show();
|
||||
}
|
||||
if (!mainWindow.isVisible()) {
|
||||
mainWindow.setSkipTaskbar(false);
|
||||
mainWindow.show();
|
||||
}
|
||||
if (mainWindow.isMinimized()) {
|
||||
@@ -219,6 +220,7 @@ app.on('activate', () => {
|
||||
return;
|
||||
}
|
||||
logger.info(`main: activating & showing main window now!`);
|
||||
mainWindow.setSkipTaskbar(false);
|
||||
mainWindow.show();
|
||||
});
|
||||
|
||||
|
||||
@@ -218,6 +218,7 @@ class PresenceStatus {
|
||||
label: i18n.t('Open Symphony Messaging')(),
|
||||
click: () => {
|
||||
if (mainWindow && windowExists(mainWindow)) {
|
||||
mainWindow.setSkipTaskbar(false);
|
||||
mainWindow.show();
|
||||
const presence = this.myCurrentPresence;
|
||||
if (presence) {
|
||||
@@ -257,6 +258,7 @@ class PresenceStatus {
|
||||
label: i18n.t('Open Symphony Messaging')(),
|
||||
click: () => {
|
||||
if (mainWindow && windowExists(mainWindow)) {
|
||||
mainWindow.setSkipTaskbar(false);
|
||||
mainWindow.show();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -546,6 +546,7 @@ export class WindowHandler {
|
||||
);
|
||||
mainEvents.publish('maximize');
|
||||
}
|
||||
this.mainWindow.setSkipTaskbar(false);
|
||||
this.mainWindow.show();
|
||||
initSysTray();
|
||||
if (isWindowsOS) {
|
||||
@@ -820,6 +821,7 @@ export class WindowHandler {
|
||||
logger.info(`window-handler: has child window?`, hasChildWindow);
|
||||
|
||||
event.preventDefault();
|
||||
this.mainWindow.setSkipTaskbar(true);
|
||||
if (this.mainWindow.isFullScreen()) {
|
||||
exitFullscreenAndHideWindow(this.mainWindow);
|
||||
} else {
|
||||
|
||||
@@ -336,6 +336,7 @@ export const initSysTray = () => {
|
||||
label: i18n.t('Open Symphony Messaging')(),
|
||||
click: () => {
|
||||
if (mainWindow && windowExists(mainWindow)) {
|
||||
mainWindow.setSkipTaskbar(false);
|
||||
mainWindow.show();
|
||||
const presence = presenceStatus.myCurrentPresence;
|
||||
if (presence) {
|
||||
@@ -356,6 +357,7 @@ export const initSysTray = () => {
|
||||
tray.on('click', () => {
|
||||
if (mainWindow && windowExists(mainWindow)) {
|
||||
logger.info(`window-utils: tray click, showing main window!`);
|
||||
mainWindow.setSkipTaskbar(false);
|
||||
mainWindow.show();
|
||||
const presence = presenceStatus.myCurrentPresence;
|
||||
if (presence) {
|
||||
|
||||
Reference in new issue
Block a user