objects are hidden by default

no need to do it twice
This commit is contained in:
Corwin Kuiper 2021-06-05 22:14:47 +01:00
parent eb352085f1
commit 4cc7650ddc

View file

@ -250,8 +250,7 @@ impl ObjectAttribute {
impl ObjectControl { impl ObjectControl {
pub(crate) fn new() -> Self { pub(crate) fn new() -> Self {
let mut o = ObjectAttribute::new(); let o = ObjectAttribute::new();
o.set_mode(Mode::Hidden);
for index in 0..128 { for index in 0..128 {
unsafe { o.commit(index) }; unsafe { o.commit(index) };
} }