chore: switch to async rpc framework, fix buttons
This commit is contained in:
6 files changed
+128
-98
No files matched your search
@@ -878,7 +878,7 @@ pub struct PresenceButton {
|
||||
pub async fn presence_update_button(button: PresenceButton) {
|
||||
match (button.text.as_deref(), button.url.as_deref()) {
|
||||
(Some(text), Some(url)) => presence::set_button(text, url),
|
||||
_ => presence::clear_button(),
|
||||
_ =>presence::clear_button()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user