Do not allow duplication of groups

Functionality has to be implemented first.
Otherwise visual issues might occur when expanding or collapsing the
new copy of the group entry.
This commit is contained in:
WarmUpTill
2023-03-23 18:53:36 +01:00
committed by WarmUpTill
parent 18769df2ca
commit 8beca6fcc7

View File

@@ -520,7 +520,8 @@ void AdvSceneSwitcher::ShowMacroContextMenu(const QPoint &pos)
auto copy = menu.addAction(
obs_module_text("AdvSceneSwitcher.macroTab.copy"), this,
&AdvSceneSwitcher::CopyMacro);
copy->setEnabled(ui->macros->SingleItemSelected());
copy->setEnabled(ui->macros->SingleItemSelected() &&
!ui->macros->GroupsSelected());
menu.addSeparator();
auto group = menu.addAction(