Skip to content

Commit

Permalink
Revert "Don't save unused presets in the config file"
Browse files Browse the repository at this point in the history
This reverts commit 732920d. That
commit caused presets that haven't been renamed to not show up in the
PTZ Action source settings dialog.

Fixes #136

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
glikely committed Feb 10, 2023
1 parent b640886 commit 42a0a56
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ptz-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,6 @@ OBSData PTZDevice::get_config()
OBSDataArray preset_array = obs_data_array_create();
obs_data_array_release(preset_array);
for (int i = 0; i < list.size(); i++) {
if (list[i] == QString("Preset %1").arg(i + 1))
continue; // Don't save unchanged presets
OBSData preset = obs_data_create();
obs_data_release(preset);
obs_data_set_int(preset, "id", i);
Expand Down

0 comments on commit 42a0a56

Please sign in to comment.