get rid of timeouts that aren't needed anymore

This commit is contained in:
perf3ct 2025-03-28 21:14:57 +00:00
parent 005ddc4a59
commit 59e77407e2
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
2 changed files with 0 additions and 20 deletions

View File

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

View File

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