mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-25 10:23:20 -05:00
fix(gui): Auto updater prompt (#405)
This commit is contained in:
parent
0fb12fd240
commit
11ab7aaa84
4 changed files with 1676 additions and 1566 deletions
|
|
@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- GUI: Fix issue where auto updater would not display the update
|
||||||
- ASB + GUI + CLI: Increase request_timeout to 7s, min_retries to 10 for Electrum load balancer
|
- ASB + GUI + CLI: Increase request_timeout to 7s, min_retries to 10 for Electrum load balancer
|
||||||
|
|
||||||
## [2.0.0] - 2025-06-12
|
## [2.0.0] - 2025-06-12
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
"@tauri-apps/plugin-process": "^2.0.0",
|
"@tauri-apps/plugin-process": "^2.0.0",
|
||||||
"@tauri-apps/plugin-shell": "^2.0.0",
|
"@tauri-apps/plugin-shell": "^2.0.0",
|
||||||
"@tauri-apps/plugin-store": "^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",
|
"@types/react-redux": "^7.1.34",
|
||||||
"humanize-duration": "^3.32.1",
|
"humanize-duration": "^3.32.1",
|
||||||
"jdenticon": "^3.3.0",
|
"jdenticon": "^3.3.0",
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ export default function UpdaterDialog() {
|
||||||
// Check for updates when component mounts
|
// Check for updates when component mounts
|
||||||
check()
|
check()
|
||||||
.then((updateResponse) => {
|
.then((updateResponse) => {
|
||||||
|
console.log("updateResponse", updateResponse);
|
||||||
setAvailableUpdate(updateResponse);
|
setAvailableUpdate(updateResponse);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
@ -76,7 +77,7 @@ export default function UpdaterDialog() {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// If no update is available, don't render the dialog
|
// If no update is available, don't render the dialog
|
||||||
if (!availableUpdate?.available) return null;
|
if (availableUpdate === null) return null;
|
||||||
|
|
||||||
function hideNotification() {
|
function hideNotification() {
|
||||||
setAvailableUpdate(null);
|
setAvailableUpdate(null);
|
||||||
|
|
|
||||||
3236
src-gui/yarn.lock
3236
src-gui/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue