mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Add option to hide entries from action selection
Intended to be used to hide legacy version of actions types (e.g. HTTP)
This commit is contained in:
parent
78a5a2629d
commit
1b05019acc
|
|
@ -17,6 +17,9 @@ static inline void populateActionSelection(QComboBox *list)
|
|||
QString entry(obs_module_text(action._name.c_str()));
|
||||
if (list->findText(entry) == -1) {
|
||||
list->addItem(entry);
|
||||
qobject_cast<QListView *>(list->view())
|
||||
->setRowHidden(list->count() - 1,
|
||||
action._hidden);
|
||||
} else {
|
||||
blog(LOG_WARNING,
|
||||
"did not insert duplicate action entry with name \"%s\"",
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ struct MacroActionInfo {
|
|||
std::function<std::shared_ptr<MacroAction>(Macro *m)> _create = nullptr;
|
||||
CreateActionWidget _createWidget = nullptr;
|
||||
std::string _name;
|
||||
bool _hidden = false;
|
||||
};
|
||||
|
||||
class MacroActionFactory {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user