MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / setupRemoveContextMenuEnry

Function setupRemoveContextMenuEnry

lib/macro/macro-edit.cpp:806–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806static void setupRemoveContextMenuEnry(
807 MacroEdit *edit, const std::function<void(MacroEdit *, int)> &remove,
808 const QPoint &pos, MacroSegmentList *list, QMenu &menu)
809{
810 const auto segmentEditIndex = list->IndexAt(pos);
811 if (segmentEditIndex == -1) {
812 return;
813 }
814
815 menu.addAction(
816 obs_module_text("AdvSceneSwitcher.macroTab.segment.remove"),
817 edit, [edit, remove, segmentEditIndex]() {
818 remove(edit, segmentEditIndex);
819 });
820}
821
822static bool handleCustomLabelRename(MacroSegmentEdit *segmentEdit)
823{

Callers 1

SetupContextMenuMethod · 0.85

Calls 2

obs_module_textFunction · 0.85
IndexAtMethod · 0.80

Tested by

no test coverage detected