Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Bulk add from search" button disappears when changing workspace #72

Open
linduxed opened this issue Feb 2, 2022 · 0 comments
Open

Comments

@linduxed
Copy link

linduxed commented Feb 2, 2022

The button for bulk adding from search (in the search sidebar section) disappears for me if one switches between the workspaces.

Currently the code that adds the button can be found here:

this.app.workspace.onLayoutReady(async () => {
this.createStatusBar();
const queuePath = this.getDefaultQueuePath();
await this.loadQueue(queuePath);
this.createTagMap();
this.checkTagsOnModified();
this.addSearchButton();
this.autoAddNewNotesOnCreate();
});

Specifically this line:

this.addSearchButton();

I'm guessing that addSearchButton should be called for some workspace-related event, but currently is not, but I'm ignorant on the topic, so this is just a guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant