Skip to content

Commit

Permalink
fix: refresh app list on check
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves committed May 6, 2024
1 parent 4bc0efd commit 8fc53e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/apps/AppList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Loading...

<button
@click="verify()"
@click="verifyAndLoad()"
class="px-4 py-2 bg-gray-200 leading-4 rounded mx-auto flex items-center"
title="Reload list"
aria-label="Reload list"
Expand Down Expand Up @@ -144,6 +144,11 @@ function addAppPrompt() {
addApp(name);
}
async function verifyAndLoad() {
await verify();
await refresh();
}
onMounted(async () => {
await refresh();
});
Expand Down
2 changes: 2 additions & 0 deletions composables/useCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export function useCommands() {
await verify();
}

canRunCommands.value = true;

return remote!.then(c => c.run(name, args));
}

Expand Down

0 comments on commit 8fc53e4

Please sign in to comment.