refactor: remove processs_note_selection

Moved this to NoteOptionSelection::process

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-26 09:22:05 -07:00
parent 171889b3aa
commit 1a94c21d96
4 changed files with 13 additions and 14 deletions

View File

@@ -1,5 +1,4 @@
use crate::draft::Draft;
use crate::note_options::process_note_selection;
use crate::{
actionbar::BarAction, column::Columns, imgcache::ImageCache, notecache::NoteCache,
timeline::TimelineId, ui,
@@ -159,7 +158,9 @@ fn timeline_ui(
debug!("clicked note");
}
process_note_selection(ui, resp.option_selection, &note);
if let Some(selection) = resp.option_selection {
selection.process(ui, &note);
}
});
ui::hline(ui);