| 7 | namespace advss { |
| 8 | |
| 9 | void 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 | |
| 25 | std::string GetPathInProfileDir(const char *filePath) |
| 26 | { |
no test coverage detected