Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix[tauri]: remove auto-update toast (#2975)

Peter Chinmanb85bf3e52b14
diff --git a/js/app/packages/app/component/BundleUpdateProgressBar.tsx b/js/app/packages/app/component/BundleUpdateProgressBar.tsx
index d985fd5d58..2257b6d499 100644
--- a/js/app/packages/app/component/BundleUpdateProgressBar.tsx
+++ b/js/app/packages/app/component/BundleUpdateProgressBar.tsx
@@ -1,13 +1,9 @@
-import { toast } from '@core/component/Toast/Toast';
import { useTauri } from '@macro/tauri';
-import { invoke } from '@tauri-apps/api/core';
-import { Show, createEffect, createMemo, on } from 'solid-js';
+import { Show, createMemo } from 'solid-js';
export function BundleUpdateProgressBar() {
const tauri = useTauri();
- const status = createMemo(() => tauri?.bundleUpdateStatus().status);
-
const progress = createMemo(() => {
const s = tauri?.bundleUpdateStatus();
if (!s) return null;
@@ -21,22 +17,6 @@ export function BundleUpdateProgressBar() {
}
});
- createEffect(
- on(status, (cur, prev) => {
- if (prev !== 'Completed' && cur === 'Completed') {
- toast.success('Update downloaded', 'Tap to apply update', [
- {
- label: 'Update',
- onClick: () =>
- invoke('perform_update').catch((e) =>
- console.error('[bundle-update] perform_update failed', e)
- ),
- },
- ]);
- }
- })
- );
-
return (
<Show when={progress() !== null}>
<div class="w-full h-0.5 bg-surface-2">