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,6 +57,7 @@ impl LeveledTermView {
|
|||
}
|
||||
|
||||
pub fn set_level(&mut self, l: usize) {
|
||||
if self.level != l {
|
||||
self.level = l;
|
||||
|
||||
// update complete area
|
||||
|
@ -65,6 +66,7 @@ impl LeveledTermView {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ImplIndexView for LeveledTermView {
|
||||
type Key = Point2<i16>;
|
||||
|
|
Loading…
Reference in a new issue