fix(plugin): align _find_mangohud_log with scoped clear, reset lastLogPath on error

This commit is contained in:
2026-07-13 04:51:29 +08:00
parent 61154dbda3
commit 5759fdbafd
3 changed files with 72 additions and 2 deletions
+1
View File
@@ -70,6 +70,7 @@ function Content() {
const logResult = await readAndParseMangohudLog(logPath.path ?? undefined)
if (logResult.error) {
setError(logResult.error)
setLastLogPath(null)
return
}
setLastLogPath(logPath.path ?? null)