Use flag to determine when terminal needs update, only update once before draw
This commit is contained in:
parent
bb0d11180d
commit
556c32e33f
3 changed files with 22 additions and 4 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue