From c314b0e672bc2902702b349b94817403fc23f32e Mon Sep 17 00:00:00 2001 From: Daniel Grossmann-Kavanagh Date: Wed, 11 Dec 2024 11:55:48 -0800 Subject: [PATCH] feat: Add file menu action for managing a Shared Folder --- src/main.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.ts b/src/main.ts index 2d63437..cfb6e6e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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}`, + ); + }); + }); } }), );