From 7515c502c5c417e733f55b3f95400464491dd057 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Sat, 10 Jun 2023 16:42:16 -0400 Subject: [PATCH] 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. --- src/yuzu/configuration/shared_widget.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp index 04c332bc2..efb3b329c 100644 --- a/src/yuzu/configuration/shared_widget.cpp +++ b/src/yuzu/configuration/shared_widget.cpp @@ -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