mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 13:39:58 +01:00
"Show/Hide" tray action shows window from background instead of hiding it. (#312)
This commit is contained in:
parent
8fd24d2fa2
commit
61ed2a21c6
@ -36,7 +36,7 @@ export function destroy(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggleWin(): void {
|
function toggleWin(): void {
|
||||||
if (global.mainWindow.isVisible() && !global.mainWindow.isMinimized()) {
|
if (global.mainWindow.isVisible() && !global.mainWindow.isMinimized() && global.mainWindow.isFocused()) {
|
||||||
global.mainWindow.hide();
|
global.mainWindow.hide();
|
||||||
} else {
|
} else {
|
||||||
if (global.mainWindow.isMinimized()) global.mainWindow.restore();
|
if (global.mainWindow.isMinimized()) global.mainWindow.restore();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user