weird actionbar experiment
This commit is contained in:
@@ -4,6 +4,7 @@ use std::time::Duration;
|
||||
|
||||
pub struct NoteCache {
|
||||
reltime: TimeCached<String>,
|
||||
pub bar_open: bool,
|
||||
}
|
||||
|
||||
impl NoteCache {
|
||||
@@ -12,7 +13,8 @@ impl NoteCache {
|
||||
Duration::from_secs(1),
|
||||
Box::new(move || time_ago_since(created_at)),
|
||||
);
|
||||
NoteCache { reltime }
|
||||
let bar_open = false;
|
||||
NoteCache { reltime, bar_open }
|
||||
}
|
||||
|
||||
pub fn reltime_str(&mut self) -> &str {
|
||||
|
||||
Reference in New Issue
Block a user