fix(plugin): update verify config check, add debug list tmp
This commit is contained in:
@@ -165,9 +165,9 @@ export default function MainPanel({
|
||||
}
|
||||
const content = result.content
|
||||
const hasOutputFolder = content.includes("output_folder=/tmp")
|
||||
const hasOutputFile = content.includes("output_file=deckyvault-mangohud.log")
|
||||
const hasFps = content.includes("fps")
|
||||
if (hasOutputFolder && hasOutputFile && hasFps) {
|
||||
const hasFrameTiming = content.includes("frame_timing")
|
||||
if (hasOutputFolder && hasFps) {
|
||||
setConfigVerified({ checked: true, valid: true, message: "Config looks good" })
|
||||
} else {
|
||||
setConfigVerified({ checked: true, valid: false, message: "Config is missing required settings. Write it again." })
|
||||
|
||||
@@ -86,6 +86,10 @@ export const testApiKey = callable<[apiKey: string, baseUrl?: string], {
|
||||
error?: string
|
||||
}>("test_api_key")
|
||||
|
||||
export const debugListTmp = callable<[], {
|
||||
files: Array<{ name: string; size: number; mtime: number }>
|
||||
}>("debug_list_tmp")
|
||||
|
||||
// ── Config Export/Import ────────────────────────────────────────
|
||||
export const exportConfig = callable<[settings: {
|
||||
apiKey: string
|
||||
|
||||
Reference in New Issue
Block a user