mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-29 20:55:28 -05:00
Add any transition selection in populate function
This commit is contained in:
@@ -485,8 +485,7 @@ void populateSourceSelection(QComboBox *list, bool addSelect)
|
||||
list->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
void populateTransitionSelection(QComboBox *sel, bool addCurrent,
|
||||
bool addSelect, bool selectable)
|
||||
void populateTransitionSelection(QComboBox *sel, bool addCurrent, bool addAny)
|
||||
{
|
||||
|
||||
obs_frontend_source_list *transitions = new obs_frontend_source_list();
|
||||
@@ -502,19 +501,19 @@ void populateTransitionSelection(QComboBox *sel, bool addCurrent,
|
||||
|
||||
sel->model()->sort(0);
|
||||
|
||||
addSelectionEntry(sel,
|
||||
obs_module_text("AdvSceneSwitcher.selectTransition"));
|
||||
sel->setCurrentIndex(0);
|
||||
|
||||
if (addCurrent) {
|
||||
sel->insertItem(
|
||||
0,
|
||||
1,
|
||||
obs_module_text("AdvSceneSwitcher.currentTransition"));
|
||||
}
|
||||
|
||||
if (addSelect) {
|
||||
addSelectionEntry(
|
||||
sel,
|
||||
obs_module_text("AdvSceneSwitcher.selectTransition"),
|
||||
selectable);
|
||||
if (addAny) {
|
||||
sel->insertItem(
|
||||
1, obs_module_text("AdvSceneSwitcher.anyTransition"));
|
||||
}
|
||||
sel->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
void populateWindowSelection(QComboBox *sel, bool addSelect)
|
||||
|
||||
Reference in New Issue
Block a user