From dd8aa0f4acca5f5ae0de8d547be7b5c87603ff73 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Tue, 4 Dec 2018 19:04:13 +0900 Subject: fix bug --- app/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index 4faf42e..018ee06 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -135,7 +135,7 @@ int main(int argc, char* argv[]) { QLibWindowmanager::Event_Invisible, [&isVisible](json_object* object) { qDebug() << "Surface Video got Event_Invisible!"; - isVisible = true; + isVisible = false; }); // Set the event handler for Event_Restriction which will allocate or @@ -145,6 +145,7 @@ int main(int argc, char* argv[]) { [hs, &area, &isVisible, &isRestrict](json_object* object) { qDebug() << "Surface Video got Event_CarRun!"; if(isVisible){ + qDebug() << "Surface Video send allocateRestriction!"; hs->allocateRestriction(area.toStdString().c_str()); isRestrict = true; } @@ -155,6 +156,7 @@ int main(int argc, char* argv[]) { [hs, &area, &isRestrict](json_object* object) { qDebug() << "Surface Video got Event_CarStop!"; if(isRestrict){ + qDebug() << "Surface Video send releaseRestriction!"; hs->releaseRestriction(area.toStdString().c_str()); isRestrict = false; } -- cgit 1.2.3-korg