mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Fix #300
This commit is contained in:
parent
1d7a065b8a
commit
4d30ea696e
1 changed files with 4 additions and 4 deletions
|
|
@ -30,7 +30,6 @@ import {
|
|||
refreshAllFolderStyles, setActiveFolder, removeActiveFolder,
|
||||
} from './functions/styleFunctions';
|
||||
import { getExcludedFolder } from './ExcludeFolders/functions/folderFunctions';
|
||||
import type { FileExplorerView, InternalPlugin } from 'obsidian-typings';
|
||||
import { FOLDER_OVERVIEW_VIEW, FolderOverviewView } from './obsidian-folder-overview/src/view';
|
||||
import { registerOverviewCommands } from './obsidian-folder-overview/src/Commands';
|
||||
import { updateOverviewView, updateViewDropdown } from './obsidian-folder-overview/src/main';
|
||||
|
|
@ -51,9 +50,6 @@ export default class FolderNotesPlugin extends Plugin {
|
|||
askModalCurrentlyOpen = false;
|
||||
fvIndexDB: FvIndexDB;
|
||||
|
||||
private fileExplorerPlugin!: InternalPlugin;
|
||||
private fileExplorerView!: FileExplorerView;
|
||||
|
||||
async onload(): Promise<void> {
|
||||
console.log('loading folder notes plugin');
|
||||
await this.loadSettings();
|
||||
|
|
@ -175,6 +171,10 @@ export default class FolderNotesPlugin extends Plugin {
|
|||
return new FolderOverviewView(leaf, this);
|
||||
});
|
||||
|
||||
this.app.workspace.on('layout-change', () => {
|
||||
this.tabManager.updateTabs();
|
||||
});
|
||||
|
||||
if (this.app.plugins.getPlugin('obsidian-front-matter-title-plugin')) {
|
||||
this.fmtpHandler = new FrontMatterTitlePluginHandler(this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue