Skip to content

Commit

Permalink
ota button
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed May 26, 2024
1 parent 771733b commit 3867cc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/more.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const MoreComponent: VFC = () => {
<PanelSectionRow>
<ActionButtonItem
layout="below"
onClick={() => {
Backend.updateLatest();
onClick={async () => {
await Backend.updateLatest();
}}
>{uptButtonText}</ActionButtonItem>
</PanelSectionRow>
Expand Down
2 changes: 1 addition & 1 deletion src/util/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export class Backend {

// updateLatest
public static async updateLatest() {
await this.serverAPI!.callPluginMethod("update_latest", {});
return await this.serverAPI!.callPluginMethod("update_latest", {});
}

public static async applyGPUSliderFix() {
Expand Down

0 comments on commit 3867cc0

Please sign in to comment.