chore(gui): drop unused tg/boosty/patreon entries from appInfo store
This commit is contained in:
parent
7f167b563b
commit
5cbd5515d3
1 changed files with 1 additions and 10 deletions
|
|
@ -40,11 +40,8 @@ export const assistantVoice = writable("")
|
||||||
|
|
||||||
// ### APP INFO
|
// ### APP INFO
|
||||||
export const appInfo = writable({
|
export const appInfo = writable({
|
||||||
tgOfficialLink: "",
|
|
||||||
feedbackLink: "",
|
feedbackLink: "",
|
||||||
repositoryLink: "",
|
repositoryLink: "",
|
||||||
boostySupportLink: "",
|
|
||||||
patreonSupportLink: "",
|
|
||||||
logFilePath: ""
|
logFilePath: ""
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -60,21 +57,15 @@ export async function loadVoiceSetting() {
|
||||||
|
|
||||||
export async function loadAppInfo() {
|
export async function loadAppInfo() {
|
||||||
try {
|
try {
|
||||||
const [tg, feedback, repo, boosty, patreon, logPath] = await Promise.all([
|
const [feedback, repo, logPath] = await Promise.all([
|
||||||
invoke<string>("get_tg_official_link"),
|
|
||||||
invoke<string>("get_feedback_link"),
|
invoke<string>("get_feedback_link"),
|
||||||
invoke<string>("get_repository_link"),
|
invoke<string>("get_repository_link"),
|
||||||
invoke<string>("get_boosty_link"),
|
|
||||||
invoke<string>("get_patreon_link"),
|
|
||||||
invoke<string>("get_log_file_path")
|
invoke<string>("get_log_file_path")
|
||||||
])
|
])
|
||||||
|
|
||||||
appInfo.set({
|
appInfo.set({
|
||||||
tgOfficialLink: tg,
|
|
||||||
feedbackLink: feedback,
|
feedbackLink: feedback,
|
||||||
repositoryLink: repo,
|
repositoryLink: repo,
|
||||||
boostySupportLink: boosty,
|
|
||||||
patreonSupportLink: patreon,
|
|
||||||
logFilePath: logPath
|
logFilePath: logPath
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue