Skip to content

Commit

Permalink
fix Refresh button
Browse files Browse the repository at this point in the history
  • Loading branch information
Nottinghster authored May 28, 2024
1 parent 8a463a9 commit d8c2bc0
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 d8c2bc0

Please sign in to comment.