From 59e77407e22c69de16ca8fd5876ba0da827a3a5f Mon Sep 17 00:00:00 2001 From: perf3ct Date: Fri, 28 Mar 2025 21:14:57 +0000 Subject: [PATCH] get rid of timeouts that aren't needed anymore --- src/public/app/desktop.ts | 10 ---------- src/public/app/layouts/desktop_layout.ts | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/src/public/app/desktop.ts b/src/public/app/desktop.ts index 4d723ece2..9c8d4cd22 100644 --- a/src/public/app/desktop.ts +++ b/src/public/app/desktop.ts @@ -28,16 +28,6 @@ bundleService.getWidgetBundlesByParent().then(async (widgetBundles) => { }); console.error("Critical error occured", e); }); - - // Initialize right pane tab manager after layout is loaded - setTimeout(() => { - const $tabContainer = $("#right-pane-tab-container"); - const $contentContainer = $("#right-pane-content-container"); - - if ($tabContainer.length && $contentContainer.length) { - rightPaneTabManager.init($tabContainer, $contentContainer); - } - }, 1000); }); glob.setupGlobs(); diff --git a/src/public/app/layouts/desktop_layout.ts b/src/public/app/layouts/desktop_layout.ts index c8924ad0b..8aecac1d1 100644 --- a/src/public/app/layouts/desktop_layout.ts +++ b/src/public/app/layouts/desktop_layout.ts @@ -105,16 +105,6 @@ export default class DesktopLayout { getRootWidget(appContext: AppContext) { appContext.noteTreeWidget = new NoteTreeWidget(); - // Initialize the right pane tab manager after widget render - setTimeout(() => { - const $tabContainer = $("#right-pane-tab-container"); - const $contentContainer = $("#right-pane-content-container"); - - if ($tabContainer.length && $contentContainer.length) { - rightPaneTabManager.init($tabContainer, $contentContainer); - } - }, 500); - const launcherPaneIsHorizontal = options.get("layoutOrientation") === "horizontal"; const launcherPane = this.#buildLauncherPane(launcherPaneIsHorizontal); const isElectron = utils.isElectron();