Skip to content

Commit

Permalink
feat: Add file menu action for managing a Shared Folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkav committed Dec 13, 2024
1 parent 538413a commit c314b0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,16 @@ export default class Live extends Plugin {
this._liveViews.refresh("folder connection toggle");
});
});
menu.addItem((item) => {
item
.setTitle("Folder settings")
.setIcon("gear")
.onClick(() => {
this.openSettings(
`/shared-folders?id=${folder.guid}&relay=${folder.relayId}`,
);
});
});
}
}),
);
Expand Down

0 comments on commit c314b0e

Please sign in to comment.