Add notification history; pin ecosystem crates to v0.7.2
All checks were successful
dev release / build (push) Successful in 1m25s

Keep a bounded in-memory history (last 50) and a layer-shell window
listing app, summary, truncated body, and time. Toggle with
`breadbar --history` or D-Bus `dev.breadway.Bar.ToggleHistory`.

Pin bread-theme, bread-utils, and bread-screenshots to tag v0.7.2.
bread-shared stays on bread v0.8.0-rc.1.
This commit is contained in:
Breadway 2026-08-15 22:54:04 +08:00
parent 614dca71af
commit 465088dc55
10 changed files with 394 additions and 21 deletions

View file

@ -1481,6 +1481,17 @@ fn stat_label() -> gtk4::Label {
fn main() {
use clap::Parser;
let cli = screenshot::Cli::parse();
if cli.history {
let rt = tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
.expect("tokio runtime");
if let Err(e) = rt.block_on(notifications::toggle_history_remote()) {
eprintln!("breadbar: could not toggle history (is breadbar running?): {e}");
std::process::exit(1);
}
return;
}
let screenshot_req = cli.screenshot_request();
relm4::spawn(async {