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

View File

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