From 30598668d8ab91b4cea261ac4b44f7b84f722185 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Wed, 14 Aug 2024 14:11:32 +0859 Subject: [PATCH] fix: shit problem --- lala_bar/src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lala_bar/src/main.rs b/lala_bar/src/main.rs index eb01670..ba9a800 100644 --- a/lala_bar/src/main.rs +++ b/lala_bar/src/main.rs @@ -1096,22 +1096,20 @@ impl MultiApplication for LalaMusicBar { let btnwidgets: Element = unitwidgetinfo.notify_button(); let notify = &unitwidgetinfo.unit; - let realid = self.showned_notifications.get(&id).unwrap(); - let notifywidget = self.notifications.get(realid).unwrap(); if notify.inline_reply_support() { return column![ btnwidgets, Space::with_height(5.), row![ - text_input("reply something", ¬ifywidget.inline_reply) + text_input("reply something", &unitwidgetinfo.inline_reply) .on_input(move |msg| Message::InlineReplyMsgUpdate((id, msg))) .on_submit(Message::InlineReply(( notify.id, - notifywidget.inline_reply.clone() + unitwidgetinfo.inline_reply.clone() ))), button("send").on_press(Message::InlineReply(( notify.id, - notifywidget.inline_reply.clone() + unitwidgetinfo.inline_reply.clone() ))), ] ]