Skip to content

Commit

Permalink
fix Refresh button
Browse files Browse the repository at this point in the history
  • Loading branch information
Nottinghster authored and jfernandez committed May 31, 2024
1 parent 8a463a9 commit 5ed4e1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ const Content: VFC<{ serverAPI: ServerAPI }> = () => {
<div className={gamepadDialogClasses.Field}>
<ButtonItem
layout="below"
label="Refresh"
onClick={async () => {
setControllers([]);
setLoading(true);
setControllers(await delayPromise(backend.getControllers()));
setLoading(false);
}}
/>
>
Refresh
</ButtonItem>
</div>
</PanelSectionRow >
);
Expand Down

0 comments on commit 5ed4e1e

Please sign in to comment.