Add initial image viewer
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user