MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / SetSource

Method SetSource

plugins/base/utils/source-setting.cpp:453–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453void SourceSettingSelection::SetSource(const OBSWeakSource &source,
454 bool restorePreviousSelection)
455{
456 const auto previousSelection = _settings->currentData();
457 Populate(source);
458 if (restorePreviousSelection) {
459 _settings->setCurrentIndex(
460 _settings->findData(previousSelection));
461 }
462}
463
464void SourceSettingSelection::SetSelection(const OBSWeakSource &source,
465 const SourceSetting &setting)

Callers 15

UpdateEntryDataMethod · 0.45
FilterChangedMethod · 0.45
UpdateEntryDataMethod · 0.45
UpdateEntryDataMethod · 0.45
SourceChangedMethod · 0.45
UpdateEntryDataMethod · 0.45
FilterChangedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected