RosePlugs: add refresh button to its own settings

This commit is contained in:
Ally Founder 2026-08-11 18:36:37 -04:00
parent b743257ecb
commit 3e5943e09c

View file

@ -1,6 +1,9 @@
import { React } from "@vendetta/metro/common";
import SettingsScaffold from "@shared/ui/SettingsScaffold";
import NoteBox from "@shared/ui/NoteBox";
import PrimaryButton from "@shared/ui/PrimaryButton";
import { showToast } from "@vendetta/ui/toasts";
import { clearNexusCache } from "../lib/nexusApi";
export default function Settings() {
return (
@ -9,6 +12,14 @@ export default function Settings() {
RosePlugs gathers Rosie's other plugins under their own "Rosie's Plugs" section in
Settings, with a quick-install browser for anything not installed yet.
</NoteBox>
<PrimaryButton
label="Refresh plugin list"
onPress={() => {
clearNexusCache();
showToast("Plugin list will refresh next time you open Plugins");
}}
style={{ margin: 16 }}
/>
</SettingsScaffold>
);
}