Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
robtfm committed Oct 9, 2024
1 parent 290f016 commit d5b7ac7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions crates/system_ui/src/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ use ui_core::{
ui_actions::{Click, DataChanged, HoverEnter, HoverExit, On},
};

use crate::friends::{
resolve_addresses, show_popups, update_conversations, update_friends,
};
use crate::friends::{resolve_addresses, show_popups, update_conversations, update_friends};

use super::SystemUiRoot;

Expand Down
2 changes: 1 addition & 1 deletion crates/system_ui/src/friends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub fn update_friends(
name
};

let button_content = commands.spawn_template(&dui, "direct-chat-button", DuiProps::default().with_prop("name", format!("{short_name}")).with_prop("close", On::<Click>::new(move |
let button_content = commands.spawn_template(&dui, "direct-chat-button", DuiProps::default().with_prop("name", short_name).with_prop("close", On::<Click>::new(move |
mut tab_manager: TabManager,
tab: Query<Entity, With<ChatTab>>,
buttons: Query<(Entity, &PrivateChat)>,
Expand Down
2 changes: 1 addition & 1 deletion crates/ui_core/src/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl DuiTemplate for DuiButtonTemplate {
(Some(label), _) => ctx.render_template(
commands,
"button-base-text",
DuiProps::new().with_prop("label", format!("{label}")),
DuiProps::new().with_prop("label", label),
),
(None, Some(img)) => {
let mut props = DuiProps::new().with_prop("img", img);
Expand Down

0 comments on commit d5b7ac7

Please sign in to comment.