rename sql_method to query and adjust the syntax to more closely match function definitions
This commit is contained in:
parent
1cc3e4820a
commit
359b8aaf47
7 changed files with 192 additions and 124 deletions
|
@ -297,9 +297,16 @@ impl AutoUpdater {
|
|||
) -> Task<Result<()>> {
|
||||
cx.background().spawn(async move {
|
||||
if should_show {
|
||||
KEY_VALUE_STORE.write_kvp(SHOULD_SHOW_UPDATE_NOTIFICATION_KEY, "")?;
|
||||
KEY_VALUE_STORE
|
||||
.write_kvp(
|
||||
SHOULD_SHOW_UPDATE_NOTIFICATION_KEY.to_string(),
|
||||
"".to_string(),
|
||||
)
|
||||
.await?;
|
||||
} else {
|
||||
KEY_VALUE_STORE.delete_kvp(SHOULD_SHOW_UPDATE_NOTIFICATION_KEY)?;
|
||||
KEY_VALUE_STORE
|
||||
.delete_kvp(SHOULD_SHOW_UPDATE_NOTIFICATION_KEY.to_string())
|
||||
.await?;
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue