ui: remove show_pointer

This can just be achieved by on_hover_cursor

Didn't realize this.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-16 09:17:27 -07:00
parent f27b1fe957
commit 461665f599
10 changed files with 58 additions and 94 deletions

View File

@@ -189,12 +189,12 @@ pub fn render_note_contents(
},
BlockType::Hashtag => {
let resp = ui.colored_label(link_color, format!("#{}", block.as_str()));
let resp = ui
.colored_label(link_color, format!("#{}", block.as_str()))
.on_hover_cursor(egui::CursorIcon::PointingHand);
if resp.clicked() {
note_action = Some(NoteAction::Hashtag(block.as_str().to_string()));
} else if resp.hovered() {
crate::show_pointer(ui);
}
}