Use flag to determine when terminal needs update, only update once before draw

This commit is contained in:
Jeremy Soller 2024-01-04 14:25:31 -07:00
parent bb0d11180d
commit 556c32e33f
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
3 changed files with 22 additions and 4 deletions

View file

@ -123,6 +123,7 @@ pub struct Terminal {
colors: Colors,
notifier: Notifier,
pub context_menu: Option<cosmic::iced::Point>,
pub needs_update: bool,
}
impl Terminal {
@ -182,6 +183,7 @@ impl Terminal {
term,
notifier,
context_menu: None,
needs_update: true,
}
}