Skip to content

Commit 6bd754a

Browse files
committed
Fix to #383.
1 parent c9edcc7 commit 6bd754a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,12 @@ And while both plugins are about maps and use Leaflet.js as their visual engine,
837837
838838
## Changelog
839839
840+
### Unreleased
841+
842+
- Fix to https://github.com/esm7/obsidian-map-view/issues/385.
843+
- Fix to GPX registration causing plugin crashes.
844+
- Fix to https://github.com/esm7/obsidian-map-view/issues/383.
845+
840846
### 6.1.2
841847
842848
- By a very common request, Map View on mobile can now auto-add the current location to notes (e.g. your daily notes). See [here](#auto-adding-location-to-notes) for more details.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ export default class MapViewPlugin extends Plugin {
12421242
utils.goToEditorLocation(editor, cursorPos, false),
12431243
);
12441244
} else {
1245-
const leaf = this.app.workspace.activeLeaf;
1245+
const leaf = this.app.workspace.getLeaf(false);
12461246
await leaf.openFile(file, { active: true });
12471247
const editor = utils.getEditor(this.app);
12481248
if (editor)

0 commit comments

Comments
 (0)