Fix bug where images weren't rendered until image is resized

This commit is contained in:
Emi Simpson 2022-01-09 09:21:48 -05:00
parent 020e6c4f92
commit 18572a6eff
Signed by: Emi
GPG key ID: A12F2C2FFDC3D847

View file

@ -49,12 +49,16 @@ impl Editor {
let (controls, cmd) = Controls::new(song);
(Self {
let mut editor = Self {
lyrics: Lyrics::new(),
dimensions: size,
cached_resized_bg: None,
controls, theme, bg_img,
}, cmd)
};
editor.notify_resized(size.0, size.1);
(editor, cmd)
}
// TODO: work on untangling this mess