Commit 540bc11b authored by Luke Schoen's avatar Luke Schoen
Browse files

fix: Focus window instead of blurred when click Show/Hide Fether on Linux

parent 374648dc
Pipeline #44439 canceled with stage
......@@ -143,9 +143,12 @@ const getContextTrayMenuTemplate = fetherApp => {
{
label: 'Show/Hide Fether',
click () {
fetherApp.win.isVisible() && fetherApp.win.isFocused()
? fetherApp.win.hide()
: fetherApp.win.show();
if (fetherApp.win.isVisible() && fetherApp.win.isFocused()) {
fetherApp.win.hide();
} else {
fetherApp.win.show();
fetherApp.win.focus();
}
}
},
{ label: 'Quit', role: 'quit' }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment