1
0
forked from BRT/arc

Update ScreenXmlParser to use startsWith for handling multi-line "Идентифицирован" content-desc

This commit is contained in:
slava 2026-05-06 23:32:16 +07:00
parent c144305240
commit 558e881c75

View File

@ -246,7 +246,9 @@ bool ScreenXmlParser::isSideMenu() {
if (node.contentDesc == QString::fromUtf8("Выход")) {
hasVyhod = true;
}
if (node.contentDesc == QString::fromUtf8("Идентифицирован")) {
// На реальном экране content-desc = "Идентифицирован\nУспешно",
// поэтому строгое равенство не проходит — используем startsWith.
if (node.contentDesc.startsWith(QString::fromUtf8("Идентифицирован"))) {
hasIdentified = true;
}
if (hasVyhod && hasIdentified) {