fix: run mode takes effect immediately

This commit is contained in:
Louis 2024-11-11 10:53:35 +07:00
parent 19879ef279
commit 67aa89c948

View File

@ -306,7 +306,7 @@ const Advanced = () => {
})
}
// Stop any running model to apply the changes
if (e.target.checked !== gpuEnabled) stopModel()
if (e.target.checked !== gpuEnabled) stopModel().then(() => window.core?.api?.relaunch())
}}
/>
}