From 4acb39e7c93e7c951f0453d55e62bc4aa07754f2 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sat, 26 Apr 2025 12:52:10 +1000 Subject: [PATCH] Fix KV saving example --- v3/BETA_READINESS.md | 4 ++-- v3/examples/services/assets/index.html | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/v3/BETA_READINESS.md b/v3/BETA_READINESS.md index 486a01dc9..ef9175097 100644 --- a/v3/BETA_READINESS.md +++ b/v3/BETA_READINESS.md @@ -13,7 +13,7 @@ This document is for tracking the status of the v3-alpha branch in readiness for | clipboard | | ✅ | ✅ | | context-menus | | ✅ | 🚫 panic | | dialogs | | ⚠️ custom icon not working | ⚠️ | -| dialogs-basic | | ⚠️ cancel crashes the app | ✅ | +| dialogs-basic | | ✅ | ✅ | | drag-n-drop | | ✅ | ✅ | | environment | | ✅ | ✅ | | events | | ✅ | ✅ | @@ -31,7 +31,7 @@ This document is for tracking the status of the v3-alpha branch in readiness for | plain | | ✅ | ✅ | | raw-message | | ✅ | ✅ | | screen | | ✅ | ⚠️ slider bubble drags window | -| services | | ⚠️ KV needs refreshing after save | ⚠️ update kv doesnt updates view on update value | +| services | | ✅ | ✅ | | show-macos-toolbar | | ➖ | ✅ | | single-instance | | ✅ | ✅ | | systray-basic | | ✅ | ✅ | diff --git a/v3/examples/services/assets/index.html b/v3/examples/services/assets/index.html index c44a0679a..be4ca9255 100644 --- a/v3/examples/services/assets/index.html +++ b/v3/examples/services/assets/index.html @@ -173,9 +173,7 @@ // Validate the key and value if (key) { // Call the Set method - kvstore.Set(key, value); - // Get all values from the kvstore - getKVStoreValues(); + kvstore.Set(key, value).then(getKVStoreValues); } else { // Show an error message if the key is missing alert('Key is required.');