From 24f551a39eae849d891da26cc91f90d354e3a2db Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sun, 12 Jul 2026 02:44:05 +0800
Subject: [PATCH] chore(mas): refresh codebase memory after split
---
C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte b/C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte
index 2b3a727..c97ab1f 100755
--- a/C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte
+++ b/C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte
@@ -14,7 +14,7 @@
let currentModelID = $state('')
onMount(() => {
- Events.On('model:download-progress', (ev: any) => {
+ const offDownloadProgress = Events.On('model:download-progress', (ev: any) => {
const data = ev?.data
if (data?.percent != null) {
if (data?.modelID) {
@@ -31,7 +31,7 @@
}
})
- Events.On('engine:status', (ev: any) => {
+ const offEngineStatus = Events.On('engine:status', (ev: any) => {
const data = ev?.data
if (data?.status === 'ready') {
downloadActive = false
@@ -56,6 +56,11 @@
})
triggerDownload()
+
+ return () => {
+ offDownloadProgress()
+ offEngineStatus()
+ }
})
async function triggerDownload() {
--
Gitblit v1.9.3