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:
parent
3a72dd6a0d
commit
4acb39e7c9
@ -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 | | ✅ | ✅ |
|
||||
|
@ -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.');
|
||||
|
Loading…
Reference in New Issue
Block a user