refactor: make options_button a NoteOptions

No reason why this needs to be a standalone bool

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-26 09:31:11 -07:00
parent 1a94c21d96
commit a9cb734ef6
6 changed files with 32 additions and 37 deletions

View File

@@ -119,7 +119,7 @@ impl<'a> ThreadView<'a> {
ui::NoteView::new(self.ndb, self.note_cache, self.img_cache, &note)
.note_previews(!self.textmode)
.textmode(self.textmode)
.use_more_options_button(!self.textmode)
.options_button(!self.textmode)
.show(ui);
if let Some(bar_action) = note_response.action {
action = Some(bar_action);