diff options
| author | 2023-06-10 16:42:16 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:54 -0400 | |
| commit | 7515c502c5c417e733f55b3f95400464491dd057 (patch) | |
| tree | 05ca80ed3d4118950ee906bf2511adbf56701914 /src | |
| parent | FIXME configuration: Avoid unnecessary allocations (diff) | |
| download | yuzu-7515c502c5c417e733f55b3f95400464491dd057.tar.gz yuzu-7515c502c5c417e733f55b3f95400464491dd057.tar.xz yuzu-7515c502c5c417e733f55b3f95400464491dd057.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/shared_widget.cpp | 2 |
1 files changed, 0 insertions, 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 | |||
| 500 | } | 500 | } |
| 501 | this->setEnabled(enable); | 501 | this->setEnabled(enable); |
| 502 | 502 | ||
| 503 | this->setVisible(Settings::IsConfiguringGlobal() || setting.Switchable()); | ||
| 504 | |||
| 505 | this->setToolTip(tooltip); | 503 | this->setToolTip(tooltip); |
| 506 | } | 504 | } |
| 507 | } // namespace ConfigurationShared | 505 | } // namespace ConfigurationShared |