5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-08 05:00:10 +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 | | ✅ | ✅ |
| 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 | | ✅ | ✅ |

View File

@ -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.');