mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-23 03:04:19 +01:00
dave: hide media in dave note previews
it bugs out sometimes Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -246,6 +246,7 @@ impl<'a> DaveUi<'a> {
|
||||
NoteOptions::default(),
|
||||
)
|
||||
.preview_style()
|
||||
.hide_media(true)
|
||||
.show(ui)
|
||||
},
|
||||
)
|
||||
|
||||
@@ -110,6 +110,11 @@ impl<'a, 'd> NoteView<'a, 'd> {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn hide_media(mut self, enable: bool) -> Self {
|
||||
self.options_mut().set_hide_media(enable);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn frame(mut self, enable: bool) -> Self {
|
||||
self.framed = enable;
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user