fix search and create file but open in leftLeaf

This commit is contained in:
Wanxp 2023-01-03 11:55:18 +08:00
parent a00cdc59ed
commit afecbcdcd0
4 changed files with 5 additions and 4 deletions

@ -1,7 +1,7 @@
{
"id": "obsidian-douban-plugin",
"name": "Douban",
"version": "1.7.9",
"version": "1.8.0",
"minAppVersion": "0.12.0",
"description": "This is a plugin that can import movies/books/musics/notes/games info data from Douban for Obsidian .",
"author": "Wanxp",

@ -1,6 +1,6 @@
{
"name": "obsidian-douban-plugin",
"version": "1.7.9",
"version": "1.8.0",
"description": "This is a plugin for Obsidian (https://obsidian.md) that can import data from Douban (https://www.douban.com/).",
"main": "main.js",
"scripts": {

@ -136,7 +136,7 @@ export default class FileHandler {
const File = await vault.create(filePath, data);
// Create the file and open it in the active leaf
if (showAfterCreate) {
const leaf = this._app.workspace.getRightLeaf(true);
const leaf = this._app.workspace.getLeaf(true);
await leaf.openFile(File);
}
return true;

@ -24,5 +24,6 @@
"1.7.6": "0.12.0",
"1.7.7": "0.12.0",
"1.7.8": "0.12.0",
"1.7.9": "0.12.0"
"1.7.9": "0.12.0",
"1.8.0": "0.12.0"
}