diff options
| author | Jesse Bofill <jesse_bofill@yahoo.com> | 2025-10-06 14:29:39 -0600 |
|---|---|---|
| committer | Jesse Bofill <jesse_bofill@yahoo.com> | 2025-10-06 14:29:39 -0600 |
| commit | 1ae6519209c9bf079d8dff80d5bceb5a847b08b1 (patch) | |
| tree | 05daa08379fb895d5ac7f1c41ef87514803c56b6 /frontend/src/plugin-loader.tsx | |
| parent | 65f1eb052de17f21144571d932281a0484f48dfd (diff) | |
| download | decky-loader-1ae6519209c9bf079d8dff80d5bceb5a847b08b1.tar.gz decky-loader-1ae6519209c9bf079d8dff80d5bceb5a847b08b1.zip | |
implement frontend diisable functions/ modal
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index 9d74cbae..755c4460 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -341,6 +341,10 @@ class PluginLoader extends Logger { showModal(<PluginUninstallModal name={name} title={title} buttonText={buttonText} description={description} />); } + public disablePlugin(name: string, title: string, buttonText: string, description: string) { + showModal(<PluginUninstallModal name={name} title={title} buttonText={buttonText} description={description} />); + } + public hasPlugin(name: string) { return Boolean(this.plugins.find((plugin) => plugin.name == name)); } |
