chore: Add goCharacterOnImport setting to AccessibilitySettings
This commit is contained in:
@@ -645,4 +645,5 @@ export const languageEnglish = {
|
|||||||
end: "End",
|
end: "End",
|
||||||
index: "Index",
|
index: "Index",
|
||||||
search: "Search",
|
search: "Search",
|
||||||
|
goCharacterOnImport: "Go to Character on Realm Import",
|
||||||
}
|
}
|
||||||
@@ -39,6 +39,10 @@
|
|||||||
<Check bind:check={$DataBase.showMenuChatList} name={language.showMenuChatList}/>
|
<Check bind:check={$DataBase.showMenuChatList} name={language.showMenuChatList}/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center mt-2">
|
||||||
|
<Check bind:check={$DataBase.goCharacterOnImport} name={language.goCharacterOnImport}/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center mt-2">
|
<div class="flex items-center mt-2">
|
||||||
<Check bind:check={$DataBase.sideMenuRerollButton} name={language.sideMenuRerollButton}/>
|
<Check bind:check={$DataBase.sideMenuRerollButton} name={language.sideMenuRerollButton}/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
downloadRisuHub(openedData.id)
|
downloadRisuHub(openedData.id)
|
||||||
openedData = null
|
openedData = null
|
||||||
}}>
|
}}>
|
||||||
Download
|
Chat
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1147,6 +1147,12 @@ export async function downloadRisuHub(id:string) {
|
|||||||
data: res.body
|
data: res.body
|
||||||
})
|
})
|
||||||
checkCharOrder()
|
checkCharOrder()
|
||||||
|
let db = get(DataBase)
|
||||||
|
if(db.characters[db.characters.length-1] && db.goCharacterOnImport){
|
||||||
|
const index = db.characters.length-1
|
||||||
|
characterFormatUpdate(index);
|
||||||
|
selectedCharID.set(index);
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1157,7 +1163,7 @@ export async function downloadRisuHub(id:string) {
|
|||||||
await importCharacterCardSpec(data, await getHubResources(img), 'hub')
|
await importCharacterCardSpec(data, await getHubResources(img), 'hub')
|
||||||
checkCharOrder()
|
checkCharOrder()
|
||||||
let db = get(DataBase)
|
let db = get(DataBase)
|
||||||
if(db.characters[db.characters.length-1]){
|
if(db.characters[db.characters.length-1] && db.goCharacterOnImport){
|
||||||
const index = db.characters.length-1
|
const index = db.characters.length-1
|
||||||
characterFormatUpdate(index);
|
characterFormatUpdate(index);
|
||||||
selectedCharID.set(index);
|
selectedCharID.set(index);
|
||||||
|
|||||||
@@ -668,6 +668,7 @@ export interface Database{
|
|||||||
hypaAllocatedTokens:number
|
hypaAllocatedTokens:number
|
||||||
hypaChunkSize:number
|
hypaChunkSize:number
|
||||||
cohereAPIKey:string
|
cohereAPIKey:string
|
||||||
|
goCharacterOnImport:boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface customscript{
|
export interface customscript{
|
||||||
|
|||||||
Reference in New Issue
Block a user