Skip to content

Commit

Permalink
fix(Settings): Initialize camera and mic buttons when starting the fi…
Browse files Browse the repository at this point in the history
…rst time

Added the missing initialization for camera and mic settings values. This only
affected when using Kvazzup without ever clicking mic or camera buttons.
  • Loading branch information
jrsnen committed Apr 16, 2021
1 parent c706cc5 commit 6686190
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ui/settings/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ void Settings::init()
QObject::connect(basicUI_->screenDevice_combo, &QComboBox::currentTextChanged,
this, &Settings::uiChangedString);


if (!settings_.value(SettingsKey::micStatus).isValid())
{
setMicState(true);
}


if (!settings_.value(SettingsKey::cameraStatus).isValid())
{
setCameraState(true);
}

// TODO: Also emit the position of closed window and move this setting there
}

Expand Down

0 comments on commit 6686190

Please sign in to comment.