Skip to content

Commit

Permalink
fix: remove runtime config after change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayideyia committed Dec 23, 2024
1 parent 4bc6c57 commit 41e7aae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/stores/kernelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ export const useKernelApiStore = defineStore('kernelApi', () => {
logsStore.clearKernelLog()
}

const restartKernel = async (cleanupTask?: () => Promise<any>) => {
const restartKernel = async (cleanupTask?: () => Promise<any>, keepRuntimeProfile = true) => {
await stopKernel()
await cleanupTask?.()
await startKernel(runtimeProfile)
await startKernel(keepRuntimeProfile ? runtimeProfile : undefined)
}

const getProxyPort = ():
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/ProfilesView/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const handleUseProfile = async (p: IProfile) => {
const onEditProfileEnd = async () => {
const { running, profile } = appSettingsStore.app.kernel
if (running && profile === profileID.value) {
await kernelApiStore.restartKernel()
await kernelApiStore.restartKernel(undefined, false)
}
}
Expand Down

0 comments on commit 41e7aae

Please sign in to comment.