Oops. Fix a missed line from refactor
This commit is contained in:
parent
35e6128fe5
commit
b10cdf3aed
|
@ -1,7 +1,7 @@
|
|||
<script context="module" lang="ts">
|
||||
import { getChatDefaults, getExcludeFromProfile } from './Settings.svelte'
|
||||
// Profile definitions
|
||||
import { addMessage, clearMessages, getChatSettings, getCustomProfiles, getGlobalSettings, resetChatSettings, setChatSettingValueByKey, setGlobalSettingValueByKey } from './Storage.svelte'
|
||||
import { addMessage, clearMessages, getChat, getChatSettings, getCustomProfiles, getGlobalSettings, resetChatSettings, saveChatStore, setChatSettingValueByKey, setGlobalSettingValueByKey } from './Storage.svelte'
|
||||
import type { Message, SelectOption, ChatSettings } from './Types.svelte'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
|
||||
|
@ -94,7 +94,8 @@ export const applyProfile = (chatId:number, key?:string, resetChat:boolean = fal
|
|||
})
|
||||
}
|
||||
// Set to auto-start if we should
|
||||
setChatSettingValueByKey(chatId, 'startSession', settings.autoStartSession)
|
||||
getChat(chatId).startSession = settings.autoStartSession
|
||||
saveChatStore()
|
||||
// Mark mark this as last used
|
||||
setGlobalSettingValueByKey('lastProfile', key)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue