mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-19 01:20:20 +02:00
fix: reorderable list no longer toggles on backout
This commit is contained in:
@@ -54,8 +54,9 @@ export function ReorderableList<T>(props: ReorderableListProps<T>) {
|
||||
|
||||
function saveOnBackout(e: Event) {
|
||||
const event = e as CustomEvent;
|
||||
if (event.detail.button == GamepadButton.CANCEL) {
|
||||
toggleReorderEnabled();
|
||||
if (event.detail.button == GamepadButton.CANCEL && reorderEnabled) {
|
||||
setReorderEnabled(!reorderEnabled);
|
||||
props.onSave(entryList);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user