fix(gui): Auto updater prompt (#405)

This commit is contained in:
Mohan 2025-06-12 18:49:48 +02:00 committed by GitHub
parent 0fb12fd240
commit 11ab7aaa84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1676 additions and 1566 deletions

View file

@ -30,7 +30,7 @@
"@tauri-apps/plugin-process": "^2.0.0",
"@tauri-apps/plugin-shell": "^2.0.0",
"@tauri-apps/plugin-store": "^2.0.0",
"@tauri-apps/plugin-updater": "^2.0.0",
"@tauri-apps/plugin-updater": "2.7.1",
"@types/react-redux": "^7.1.34",
"humanize-duration": "^3.32.1",
"jdenticon": "^3.3.0",

View file

@ -66,6 +66,7 @@ export default function UpdaterDialog() {
// Check for updates when component mounts
check()
.then((updateResponse) => {
console.log("updateResponse", updateResponse);
setAvailableUpdate(updateResponse);
})
.catch((err) => {
@ -76,7 +77,7 @@ export default function UpdaterDialog() {
}, []);
// If no update is available, don't render the dialog
if (!availableUpdate?.available) return null;
if (availableUpdate === null) return null;
function hideNotification() {
setAvailableUpdate(null);

File diff suppressed because it is too large Load diff