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
1 changed files with 6 additions and 2 deletions

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