mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-4187: Thumbnails will not be restored after screenshot taken (#1862)
This commit is contained in:
parent
568e522c4e
commit
93755c717c
@ -1,6 +1,8 @@
|
|||||||
import { BrowserWindow } from 'electron';
|
import { BrowserWindow } from 'electron';
|
||||||
import { presenceStatusStore } from '.';
|
import { presenceStatusStore } from '.';
|
||||||
import { isMac, isWindowsOS } from '../../common/env';
|
import { isMac, isWindowsOS } from '../../common/env';
|
||||||
|
import { logger } from '../../common/logger';
|
||||||
|
import { presenceStatus } from '../presence-status-handler';
|
||||||
import { ICustomBrowserWindow, windowHandler } from '../window-handler';
|
import { ICustomBrowserWindow, windowHandler } from '../window-handler';
|
||||||
import { getWindowByName, showBadgeCount } from '../window-utils';
|
import { getWindowByName, showBadgeCount } from '../window-utils';
|
||||||
|
|
||||||
@ -104,6 +106,14 @@ export class WindowStore {
|
|||||||
);
|
);
|
||||||
|
|
||||||
showBadgeCount(presenceStatusStore.getNotificationCount());
|
showBadgeCount(presenceStatusStore.getNotificationCount());
|
||||||
|
const mainWindow = windowHandler.getMainWindow();
|
||||||
|
if (mainWindow) {
|
||||||
|
const items = presenceStatus.createThumbarButtons();
|
||||||
|
presenceStatus.updateSystemTrayPresence();
|
||||||
|
mainWindow?.setThumbarButtons(items);
|
||||||
|
logger.info('window-store: restoring thumbnail toolbar buttons');
|
||||||
|
}
|
||||||
|
|
||||||
// Store reset
|
// Store reset
|
||||||
this.destroyWindowStore();
|
this.destroyWindowStore();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user