Add initial image viewer

This commit is contained in:
2026-04-26 12:45:56 +02:00
parent 10fcd546ce
commit 17dfc144b2
6 changed files with 242 additions and 144 deletions

View File

@@ -71,6 +71,7 @@ fn main() -> anyhow::Result<()> {
let app = ui::AppWindow::new()?;
let global = app.global::<ui::Global>();
global.set_image_buckets(ModelRc::new(VecModel::default()));
let app_weak = app.as_weak();
let api = api_.clone();
@@ -222,6 +223,7 @@ struct AppImageBuckets {
impl Deref for AppImageBuckets {
type Target = VecModel<ImageBucket>;
#[track_caller]
fn deref(&self) -> &Self::Target {
self.buckets
.as_any()