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

Function PopulateProfileSelection

plugins/base/utils/profile-helpers.cpp:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace advss {
8
9void PopulateProfileSelection(QComboBox *box)
10{
11 auto profiles = obs_frontend_get_profiles();
12 char **temp = profiles;
13 while (*temp) {
14 const char *name = *temp;
15 box->addItem(name);
16 temp++;
17 }
18 bfree(profiles);
19 box->model()->sort(0);
20 AddSelectionEntry(
21 box, obs_module_text("AdvSceneSwitcher.selectProfile"), false);
22 box->setCurrentIndex(0);
23}
24
25std::string GetPathInProfileDir(const char *filePath)
26{

Callers 2

showEventMethod · 0.85

Calls 3

AddSelectionEntryFunction · 0.85
obs_module_textFunction · 0.85
modelMethod · 0.80

Tested by

no test coverage detected