5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-11 06:29:29 +08:00

Fix KV saving example

This commit is contained in:
Lea Anthony 2025-04-26 12:52:10 +10:00
parent 3a72dd6a0d
commit 4acb39e7c9
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
2 changed files with 3 additions and 5 deletions

View File

@ -13,7 +13,7 @@ This document is for tracking the status of the v3-alpha branch in readiness for
| clipboard | | ✅ | ✅ | | clipboard | | ✅ | ✅ |
| context-menus | | ✅ | 🚫 panic | | context-menus | | ✅ | 🚫 panic |
| dialogs | | ⚠️ custom icon not working | ⚠️ | | dialogs | | ⚠️ custom icon not working | ⚠️ |
| dialogs-basic | | ⚠️ cancel crashes the app | ✅ | | dialogs-basic | | | ✅ |
| drag-n-drop | | ✅ | ✅ | | drag-n-drop | | ✅ | ✅ |
| environment | | ✅ | ✅ | | environment | | ✅ | ✅ |
| events | | ✅ | ✅ | | events | | ✅ | ✅ |
@ -31,7 +31,7 @@ This document is for tracking the status of the v3-alpha branch in readiness for
| plain | | ✅ | ✅ | | plain | | ✅ | ✅ |
| raw-message | | ✅ | ✅ | | raw-message | | ✅ | ✅ |
| screen | | ✅ | ⚠️ slider bubble drags window | | screen | | ✅ | ⚠️ slider bubble drags window |
| services | | ⚠️ KV needs refreshing after save | ⚠️ update kv doesnt updates view on update value | | services | | ✅ | ✅ |
| show-macos-toolbar | | | ✅ | | show-macos-toolbar | | | ✅ |
| single-instance | | ✅ | ✅ | | single-instance | | ✅ | ✅ |
| systray-basic | | ✅ | ✅ | | systray-basic | | ✅ | ✅ |

View File

@ -173,9 +173,7 @@
// Validate the key and value // Validate the key and value
if (key) { if (key) {
// Call the Set method // Call the Set method
kvstore.Set(key, value); kvstore.Set(key, value).then(getKVStoreValues);
// Get all values from the kvstore
getKVStoreValues();
} else { } else {
// Show an error message if the key is missing // Show an error message if the key is missing
alert('Key is required.'); alert('Key is required.');