Compare commits

..

No commits in common. "main" and "0.3.4" have entirely different histories.
main ... 0.3.4

2 changed files with 3 additions and 12 deletions

13
main.js
View File

@ -1,5 +1,5 @@
/**
* obsidian-tray v0.3.5
* obsidian-tray v0.3.4
* (c) 2023 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
* (https://github.com/dragonwocky/obsidian-tray/) under the MIT license
*/
@ -76,10 +76,7 @@ const vaultWindows = new Set(),
showWindows = () => {
log(LOG_SHOWING_WINDOWS);
getWindows().forEach((win) => {
if (maximizedWindows.has(win)) {
win.maximize();
win.focus();
} else win.show();
maximizedWindows.has(win) ? win.maximize() : win.show();
});
},
hideWindows = () => {
@ -478,12 +475,6 @@ class TrayPlugin extends obsidian.Plugin {
cleanup();
}
getCurrentWindow = getCurrentWindow
getWindows = getWindows;
showWindows = showWindows;
hideWindows = hideWindows;
toggleWindows = toggleWindows;
async loadSettings() {
const DEFAULT_SETTINGS = OPTIONS.map((opt) => ({ [opt.key]: opt.default }));
this.settings = Object.assign(...DEFAULT_SETTINGS, await this.loadData());

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.5",
"version": "0.3.4",
"isDesktopOnly": true,
"minAppVersion": "1.0.0"
}