fix: empty build window buffer when presenting it

This commit is contained in:
Gabriele Musco 2023-07-05 18:47:16 +02:00
parent c95ab3d10f
commit 43c05070f2
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE

View file

@ -132,6 +132,8 @@ impl SimpleComponent for BuildWindow {
Self::Input::Present => {
self.win.as_ref().unwrap().present();
sender.input(BuildWindowMsg::UpdateBuildStatus(BuildStatus::Building));
self.set_content("".into());
self.textbuf.set_text("");
}
Self::Input::UpdateTitle(t) => {
self.set_title(t);