Skip to content

Commit

Permalink
Fix tray show/hide actions
Browse files Browse the repository at this point in the history
Revert use of focused state to determine window visibility from PR RocketChat#1700
Fix RocketChat#1935
  • Loading branch information
TibboddiT committed Apr 14, 2021
1 parent 3b2d0aa commit 58c8838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/main/trayIcon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const manageTrayIcon = async (): Promise<() => void> => {
{
label: isRootWindowVisible ? t('tray.menu.hide') : t('tray.menu.show'),
click: async () => {
const isRootWindowVisible = select(({ rootWindowState: { focused } }) => !focused);
const isRootWindowVisible = select(isRootWindowVisible);
const browserWindow = await getRootWindow();

if (isRootWindowVisible) {
Expand Down

0 comments on commit 58c8838

Please sign in to comment.