This required the following adjustments:
Instead of having a dedicated entry indicating the empty selection the
setPlaceholderText() mechanism is used.
Thus the locations where the 1st entry was assumed to be the empty
selection would have to be adjusted.
Additional checks for the empty string / index -1 have been added.
FindIdxInRagne() was adjusted to return -1 instead of 0 in case the
given string was not found.
Switched to index based singal instead of text based signal to be
notified about selection changes.
This helper class is based on QComboBox, which has filtering of items
enabled by default.
It is intended to be used in places where QComboBoxes have a lot of
entries.
For example, the condition, action, or macro selection widgets.
* Improve preprocessing of image by separating text color from the rest
of the image properly
* Add option to choose how similar the matched color can be to other
colors for it to still be counted as a match
* Show the prepreprocessed image in the "show match" preview dialog
Always building with the Release configuration caused issues (e.g.
linking) when attempting to build non-release configurations when using
the CI build scripts.
This is not done for OpenCV as it does not support all build types.
Added ExecutedSince() instead as WasExecutedRecenty() did not support
checking if a macro was executed recently when using it multiple times
in quick succession.
This could be the case if the MacroTree and a MacroDock would both
attempt to use this function at the same time.
Main use case would be to interact with other plugins which offer
hotkeys.
The benefit of this method is that it does not require a key to be bound
to the particular hotkey to trigger the functionality.
The "manual" attempt at restoring the docks should only be performed on
scene collection change as OBS will already take care of this on
starutp.
Do not delete the macro dock widgets on shutdown so OBS is able to save
their location and size properly.
It might be useful to check if a given scene is visible outside of it
being the currently active scene, as scenes can also be used as sources
within other scenes.
* Add hints directing to the scene item visibility action / condition as
they frequently get mixed up
* Clean up layout of the source condition (removed spaces in locale as
this unnecessary spacing in the layout when the settings check was not
selected