mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-19 16:02:09 -05:00
Add support to resolve variables on action queue add
This commit is contained in:
@@ -93,6 +93,16 @@ static void copyImageFromUrl(void *param)
|
||||
setMimeTypeParams(params, clipboard);
|
||||
}
|
||||
|
||||
std::shared_ptr<MacroAction> MacroActionClipboard::Create(Macro *m)
|
||||
{
|
||||
return std::make_shared<MacroActionClipboard>(m);
|
||||
}
|
||||
|
||||
std::shared_ptr<MacroAction> MacroActionClipboard::Copy() const
|
||||
{
|
||||
return std::make_shared<MacroActionClipboard>(*this);
|
||||
}
|
||||
|
||||
bool MacroActionClipboard::PerformAction()
|
||||
{
|
||||
switch (_action) {
|
||||
@@ -159,6 +169,12 @@ bool MacroActionClipboard::Load(obs_data_t *obj)
|
||||
return true;
|
||||
}
|
||||
|
||||
void MacroActionClipboard::ResolveVariablesToFixedValues()
|
||||
{
|
||||
_text.ResolveVariables();
|
||||
_url.ResolveVariables();
|
||||
}
|
||||
|
||||
static inline void populateActionSelection(QComboBox *list)
|
||||
{
|
||||
for (const auto &[action, name] : actionTypes) {
|
||||
|
||||
Reference in New Issue
Block a user