From 4d30ea696e4affe6efce7040698bbaea2223243f Mon Sep 17 00:00:00 2001 From: Lost Paul <70213368+LostPaul@users.noreply.github.com> Date: Fri, 2 Jan 2026 12:55:40 +0100 Subject: [PATCH] Fix #300 --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index ad5bf0b..493726c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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 { 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); }