Minor style changes (#114)

* use GetWeakSourceName() where possible

* add getCurrentScene() to scene group

* silence OBS warning log and fix typo in audio switch

* extract showing initial status of widgets to function in generic switch
This commit is contained in:
WarmUpTill
2021-02-03 20:27:25 +01:00
committed by GitHub
parent a5f0eb8da8
commit a84a205608
28 changed files with 837 additions and 491 deletions

View File

@@ -82,7 +82,10 @@ VolControl::VolControl(OBSSource source_, bool vertical)
nameLabel = new QLabel();
volLabel = new QLabel();
QString sourceName = obs_source_get_name(source);
QString sourceName = "";
if (source) {
obs_source_get_name(source);
}
setObjectName(sourceName);
QVBoxLayout *mainLayout = new QVBoxLayout;