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