This commit is contained in:
Lost Paul 2026-01-02 12:55:40 +01:00
parent 1d7a065b8a
commit 4d30ea696e

View file

@ -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);
}