Explorar el Código

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.
lat9nq hace 3 años
padre
commit
7515c502c5
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      src/yuzu/configuration/shared_widget.cpp

+ 0 - 2
src/yuzu/configuration/shared_widget.cpp

@@ -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