context: move note context button to its own file

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-26 10:47:43 -07:00
parent 0c3b2ae817
commit 2dba41186d
7 changed files with 176 additions and 132 deletions

View File

@@ -111,8 +111,8 @@ pub fn render_note_preview(
.options_button(true)
.show(ui);
if let Some(selection) = resp.option_selection {
selection.process(ui, &note);
if let Some(context) = resp.context_selection {
context.process(ui, &note);
}
})
.response