mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-09 01:56:00 -05:00
Display different message if whole image matches pattern
The "pattern is highlighted in red" message does not make sense in this case as there is no room to display the red border around the match.
This commit is contained in:
@@ -307,6 +307,9 @@ void PreviewImage::MarkMatch(QImage &screenshot,
|
||||
if (result.total() == 0 || countNonZero(result) == 0) {
|
||||
emit StatusUpdate(obs_module_text(
|
||||
"AdvSceneSwitcher.condition.video.patternMatchFail"));
|
||||
} else if (result.cols == 1 && result.rows == 1) {
|
||||
emit StatusUpdate(obs_module_text(
|
||||
"AdvSceneSwitcher.condition.video.patternMatchSuccessFullImage"));
|
||||
} else {
|
||||
emit StatusUpdate(obs_module_text(
|
||||
"AdvSceneSwitcher.condition.video.patternMatchSuccess"));
|
||||
|
||||
Reference in New Issue
Block a user