1
1
mirror of https://github.com/neosubhamoy/neodlp.git synced 2026-03-24 19:15:48 +05:30

fix: initial yt-dlp auto-update failing on flatpak

This commit is contained in:
2026-03-24 10:43:45 +05:30
Verified
parent 8f5607c171
commit 38d638d7b8
2 changed files with 14 additions and 1 deletions

View File

@@ -310,7 +310,11 @@ export default function App({ children }: { children: React.ReactNode }) {
console.log("Auto-update check already performed in this session, skipping");
return;
}
// const isFlatpak = await invoke<boolean>('is_flatpak');
const isFlatpak = await invoke<boolean>('is_flatpak');
if (isFlatpak && (!linuxRegisteredVersion || linuxRegisteredVersion !== appVersion)) {
console.log("Flatpak registration not completed yet! Skipping yt-dlp auto-update...");
return;
}
// if (isFlatpak) {
// console.log("Flatpak detected! Skipping yt-dlp auto-update");
// return;