Skip to content

Commit

Permalink
Hotfix: don't override pinned panes
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Feb 10, 2022
1 parent c073140 commit 44ffba0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ Quickly add new pages or content to your vault.
You can also do a [manual installation](docs/ManualInstallation.md).

## What's new?
### 0.5.0 - 0.5.1
### 0.5.0 - 0.5.2
- Added support for scripts on mobile devices.
- (0.5.1) Exposed Obsidian API for scripts. Only works for desktop usage.
- (0.5.2) Hotfix: don't override pinned panes.

### 0.4.19 - 0.4.22
- Fix issues preventing the creation of folders with Template choices.
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "quickadd",
"name": "QuickAdd",
"version": "0.5.1",
"version": "0.5.2",
"minAppVersion": "0.13.19",
"description": "Quickly add new pages or content to your vault.",
"author": "Christian B. B. Houmann",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quickadd",
"version": "0.5.1",
"version": "0.5.2",
"description": "Quickly add new pages or content to your vault.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export async function openFile(app: App, file: TFile, optional?: {openInNewTab?:
if (optional?.openInNewTab && optional?.direction) {
leaf = app.workspace.splitActiveLeaf(optional.direction);
} else {
leaf = app.workspace.activeLeaf;
leaf = app.workspace.getUnpinnedLeaf();
}

await leaf.openFile(file)
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"0.4.17": "0.12.17",
"0.4.18": "0.13.19",
"0.4.21": "0.13.19",
"0.5.1": "0.13.19"
"0.5.2": "0.13.19"
}

0 comments on commit 44ffba0

Please sign in to comment.