We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e40f7c3 commit 46e9c2eCopy full SHA for 46e9c2e
src/main.ts
@@ -22,9 +22,9 @@ export default class FullCalendarPlugin extends Plugin {
22
processFrontmatter = toEventInput;
23
24
async activateView() {
25
- const leaves = this.app.workspace.getLeavesOfType(
26
- FULL_CALENDAR_VIEW_TYPE
27
- );
+ const leaves = this.app.workspace
+ .getLeavesOfType(FULL_CALENDAR_VIEW_TYPE)
+ .filter((l) => (l.view as CalendarView).inSidebar === false);
28
if (leaves.length === 0) {
29
const leaf = this.app.workspace.getLeaf("tab");
30
await leaf.setViewState({
0 commit comments