mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-27 03:42:51 -06:00
shared_widget: Avoid calling QWidgetPrivate::setVisible
This particular setVisible function is unnecessary. It also has horrible runtime performance, so much that it consumed maybe 80% of the time used to create a widget.
This commit is contained in:
parent
79024bb955
commit
7515c502c5
1 changed files with 0 additions and 2 deletions
|
@ -500,8 +500,6 @@ Widget::Widget(Settings::BasicSetting* setting_, const TranslationMap& translati
|
||||||
}
|
}
|
||||||
this->setEnabled(enable);
|
this->setEnabled(enable);
|
||||||
|
|
||||||
this->setVisible(Settings::IsConfiguringGlobal() || setting.Switchable());
|
|
||||||
|
|
||||||
this->setToolTip(tooltip);
|
this->setToolTip(tooltip);
|
||||||
}
|
}
|
||||||
} // namespace ConfigurationShared
|
} // namespace ConfigurationShared
|
||||||
|
|
Loading…
Reference in a new issue