leveled term view: only notify when level is changed
This commit is contained in:
parent
45df06adac
commit
2d17254b2c
1 changed files with 7 additions and 5 deletions
|
@ -57,11 +57,13 @@ impl LeveledTermView {
|
|||
}
|
||||
|
||||
pub fn set_level(&mut self, l: usize) {
|
||||
self.level = l;
|
||||
if self.level != l {
|
||||
self.level = l;
|
||||
|
||||
// update complete area
|
||||
if let Some(a) = self.src.area() {
|
||||
self.cast.notify_each(a);
|
||||
// update complete area
|
||||
if let Some(a) = self.src.area() {
|
||||
self.cast.notify_each(a);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue