mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -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 { presenceStatusStore } from '.';
|
||||
import { isMac, isWindowsOS } from '../../common/env';
|
||||
import { logger } from '../../common/logger';
|
||||
import { presenceStatus } from '../presence-status-handler';
|
||||
import { ICustomBrowserWindow, windowHandler } from '../window-handler';
|
||||
import { getWindowByName, showBadgeCount } from '../window-utils';
|
||||
|
||||
@ -104,6 +106,14 @@ export class WindowStore {
|
||||
);
|
||||
|
||||
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
|
||||
this.destroyWindowStore();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user