diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 1bcf08ad..462ff3ec 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "RisuAI", - "version": "1.94.0" + "version": "1.94.1" }, "tauri": { "allowlist": { diff --git a/src/lib/ChatScreens/BackgroundDom.svelte b/src/lib/ChatScreens/BackgroundDom.svelte index b647d9bf..162d22d3 100644 --- a/src/lib/ChatScreens/BackgroundDom.svelte +++ b/src/lib/ChatScreens/BackgroundDom.svelte @@ -1,7 +1,7 @@
diff --git a/src/ts/storage/database.ts b/src/ts/storage/database.ts index d8fd0845..9663eb2d 100644 --- a/src/ts/storage/database.ts +++ b/src/ts/storage/database.ts @@ -15,7 +15,7 @@ import type { OobaChatCompletionRequestParams } from '../model/ooba'; export const DataBase = writable({} as any as Database) export const loadedStore = writable(false) -export let appVer = "1.94.0" +export let appVer = "1.94.1" export let webAppSubVer = '' export function setDatabase(data:Database){ diff --git a/src/ts/stores.ts b/src/ts/stores.ts index 6439854b..a85c6159 100644 --- a/src/ts/stores.ts +++ b/src/ts/stores.ts @@ -38,6 +38,7 @@ export const CurrentUserIcon = writable(db.userIcon) export const CurrentShowMemoryLimit = writable(db.showMemoryLimit) export const ShowVN = writable(false) export const SettingsMenuIndex = writable(-1) +export const CurrentVariablePointer = writable({} as {[key:string]: string|number|boolean}) function createSimpleCharacter(char:character|groupChat){ if((!char) || char.type === 'group'){ @@ -136,12 +137,20 @@ CurrentCharacter.subscribe((char) => { CurrentChat.subscribe((chat) => { let currentChar = get(CurrentCharacter) + if(currentChar){ - if(isEqual(currentChar.chats[currentChar.chatPage], chat)){ - return + if(!isEqual(currentChar.chats[currentChar.chatPage], chat)){ + currentChar.chats[currentChar.chatPage] = cloneDeep(chat) + CurrentCharacter.set(currentChar) } - currentChar.chats[currentChar.chatPage] = cloneDeep(chat) - CurrentCharacter.set(currentChar) + } + + const variablePointer = get(CurrentVariablePointer) + const currentState = structuredClone(chat?.scriptstate) + + if(!isEqual(variablePointer, currentState)){ + CurrentVariablePointer.set(currentState) + console.log(currentState) } }) diff --git a/version.json b/version.json index 0e59f7e1..e79f8f46 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{"version":"1.94.0"} \ No newline at end of file +{"version":"1.94.1"} \ No newline at end of file