weird actionbar experiment

This commit is contained in:
William Casarin
2024-03-12 10:11:27 +00:00
parent d4879aefe9
commit 08fad55773
4 changed files with 64 additions and 16 deletions

View File

@@ -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 {