add ffmpeg
This commit is contained in:
@@ -18,6 +18,7 @@ export const useSettingsStore = defineStore('settings', () => {
|
||||
|
||||
const ytdlpVersion = ref('Checking...')
|
||||
const quickjsVersion = ref('Checking...')
|
||||
const ffmpegVersion = ref('Checking...')
|
||||
const isInitializing = ref(true)
|
||||
|
||||
async function loadSettings() {
|
||||
@@ -49,6 +50,7 @@ export const useSettingsStore = defineStore('settings', () => {
|
||||
console.error(e)
|
||||
ytdlpVersion.value = 'Error'
|
||||
quickjsVersion.value = 'Error'
|
||||
ffmpegVersion.value = 'Error'
|
||||
} finally {
|
||||
isInitializing.value = false
|
||||
}
|
||||
@@ -57,6 +59,7 @@ export const useSettingsStore = defineStore('settings', () => {
|
||||
async function refreshVersions() {
|
||||
ytdlpVersion.value = await invoke('get_ytdlp_version')
|
||||
quickjsVersion.value = await invoke('get_quickjs_version')
|
||||
ffmpegVersion.value = await invoke('get_ffmpeg_version')
|
||||
}
|
||||
|
||||
function applyTheme(theme: string) {
|
||||
@@ -76,5 +79,5 @@ export const useSettingsStore = defineStore('settings', () => {
|
||||
}
|
||||
})
|
||||
|
||||
return { settings, loadSettings, save, initYtdlp, refreshVersions, ytdlpVersion, quickjsVersion, isInitializing }
|
||||
return { settings, loadSettings, save, initYtdlp, refreshVersions, ytdlpVersion, quickjsVersion, ffmpegVersion, isInitializing }
|
||||
})
|
||||
Reference in New Issue
Block a user