libobs, UI: Implement item_locked event
Similar to item_visible, this event fires whenever a scene item is locked or unlocked. This allows the UI and libobs to remain in sync regarding scene elements' statuses.
This commit is contained in:
@@ -94,6 +94,8 @@ VisibilityItemWidget::VisibilityItemWidget(obs_sceneitem_t *item_)
|
||||
this);
|
||||
signal_handler_connect(signal, "item_visible", OBSSceneItemVisible,
|
||||
this);
|
||||
signal_handler_connect(signal, "item_locked", OBSSceneItemLocked,
|
||||
this);
|
||||
|
||||
connect(vis, SIGNAL(clicked(bool)),
|
||||
this, SLOT(VisibilityClicked(bool)));
|
||||
@@ -121,6 +123,8 @@ void VisibilityItemWidget::DisconnectItemSignals()
|
||||
this);
|
||||
signal_handler_disconnect(signal, "item_visible", OBSSceneItemVisible,
|
||||
this);
|
||||
signal_handler_disconnect(signal, "item_locked", OBSSceneItemLocked,
|
||||
this);
|
||||
|
||||
sceneRemoved = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user