Skip to content

Commit

Permalink
fix: shit problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Aug 14, 2024
1 parent b2460c4 commit 3059866
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lala_bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,22 +1096,20 @@ impl MultiApplication for LalaMusicBar {
let btnwidgets: Element<Message> = 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", &notifywidget.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()
))),
]
]
Expand Down

0 comments on commit 3059866

Please sign in to comment.