Skip to content

Commit

Permalink
feat: add menu separator to plugin menu
Browse files Browse the repository at this point in the history
Splits it in two sections:

- Install actions (reload, reinstall, uninstall)
- Status actions (hide, freeze)

Makes a bit less overwhelming and more structured, now that there is an
additional "Reinstall" menu item.
  • Loading branch information
alvaro-cuesta committed Jan 17, 2025
1 parent 91c9d11 commit a811915
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
},
"dependencies": {
"@decky/ui": "^4.8.3",
"@decky/ui": "^4.9.0",
"compare-versions": "^6.1.1",
"filesize": "^10.1.2",
"i18next": "^23.11.5",
Expand Down
10 changes: 5 additions & 5 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions frontend/src/components/settings/pages/plugin_list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
GamepadEvent,
Menu,
MenuItem,
MenuSeparator,
Navigation,
QuickAccessTab,
ReorderableEntry,
Expand Down Expand Up @@ -99,6 +100,9 @@ function PluginInteractables(props: { entry: ReorderableEntry<PluginTableData> }
>
{t('PluginListIndex.uninstall')}
</MenuItem>

<MenuSeparator />

{hidden ? (
<MenuItem onSelected={onShow}>{t('PluginListIndex.show')}</MenuItem>
) : (
Expand Down

0 comments on commit a811915

Please sign in to comment.