Cleanup command

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-08-13 00:11:33 +02:00
parent 7e5d350676
commit ff75f1bc58
4 changed files with 69 additions and 2 deletions
+29
View File
@@ -255,6 +255,35 @@ export default function RemoteDefaultsDrawer({
<span className="font-mono text-blue-300">Browse</span>{' '}
option
</Checkbox>
<Checkbox
isSelected={
!config?.disabledActions?.includes('tray-cleanup')
}
onValueChange={(value) => {
if (value) {
setConfig((prev) => ({
...prev,
disabledActions:
prev?.disabledActions?.filter(
(action) =>
action !== 'tray-cleanup'
),
}))
} else {
setConfig((prev) => ({
...prev,
disabledActions: [
...(prev?.disabledActions || []),
'tray-cleanup',
],
}))
}
}}
>
Show{' '}
<span className="font-mono text-blue-300">Cleanup</span>{' '}
option
</Checkbox>
<Checkbox
isSelected={
!config?.disabledActions?.includes('tray-remove')