mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
toggle find action depending of content type
This commit is contained in:
parent
3c82ab9de9
commit
957e56cc3e
3 changed files with 42 additions and 25 deletions
|
|
@ -19,8 +19,9 @@ pub struct Meta {
|
|||
} // @TODO move to separated mod
|
||||
|
||||
pub struct Text {
|
||||
pub meta: Meta,
|
||||
pub g_box: Box,
|
||||
pub has_search: bool,
|
||||
pub meta: Meta,
|
||||
}
|
||||
|
||||
impl Text {
|
||||
|
|
@ -86,6 +87,7 @@ impl Text {
|
|||
meta: Meta {
|
||||
title: gemini.reader.title.clone(),
|
||||
},
|
||||
has_search: true,
|
||||
g_box,
|
||||
}
|
||||
}
|
||||
|
|
@ -101,6 +103,7 @@ impl Text {
|
|||
|
||||
Self {
|
||||
meta: Meta { title: None },
|
||||
has_search: false,
|
||||
g_box,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue