2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01: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:
lat9nq 2023-06-10 16:42:16 -04:00
parent 79024bb955
commit 7515c502c5

View file

@ -500,8 +500,6 @@ Widget::Widget(Settings::BasicSetting* setting_, const TranslationMap& translati
}
this->setEnabled(enable);
this->setVisible(Settings::IsConfiguringGlobal() || setting.Switchable());
this->setToolTip(tooltip);
}
} // namespace ConfigurationShared