fix: #29 #30 focus maximised windows on trigger after alt-tab

This commit is contained in:
dragonwocky 2023-09-04 21:26:01 +10:00
parent 6a76f575ed
commit cc0baa3226
Signed by: dragonwocky
GPG Key ID: 7998D08F7D7BD7A8
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/**
* obsidian-tray v0.3.4
* obsidian-tray v0.3.5
* (c) 2023 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
* (https://github.com/dragonwocky/obsidian-tray/) under the MIT license
*/
@ -76,7 +76,10 @@ const vaultWindows = new Set(),
showWindows = () => {
log(LOG_SHOWING_WINDOWS);
getWindows().forEach((win) => {
maximizedWindows.has(win) ? win.maximize() : win.show();
if (maximizedWindows.has(win)) {
win.maximize();
win.focus();
} else win.show();
});
},
hideWindows = () => {

View File

@ -4,7 +4,7 @@
"author": "dragonwocky",
"authorUrl": "https://dragonwocky.me/",
"description": "Run Obsidian from the system tray for customisable window management & global quick notes",
"version": "0.3.4",
"version": "0.3.5",
"isDesktopOnly": true,
"minAppVersion": "1.0.0"
}