This commit is contained in:
2026-06-07 17:18:11 +07:00
parent 57a129fa93
commit 04983be23f
3 changed files with 46 additions and 49 deletions

View File

@@ -89,14 +89,14 @@ impl DeviceRegistry {
fn new(window: &mut Window, cx: &mut Context<Self>) -> Self {
let nostr = NostrRegistry::global(cx);
let settings = AppSettings::global(cx);
let is_nip4e_enabled = settings.read(cx).is_nip4e_enabled();
let is_nip4e_enabled = settings.read(cx).is_nip4e_enabled(cx);
let mut subscriptions = smallvec![];
subscriptions.push(
// Subscribe to nostr state events
cx.observe(&settings, move |this, settings, cx| {
if settings.read(cx).is_nip4e_enabled() {
if settings.read(cx).is_nip4e_enabled(cx) {
this.get_announcement(cx);
};
}),