diff --git a/src/web/UBTrapFlashController.cpp b/src/web/UBTrapFlashController.cpp index d066227d..25cb37e9 100644 --- a/src/web/UBTrapFlashController.cpp +++ b/src/web/UBTrapFlashController.cpp @@ -31,6 +31,8 @@ #include "board/UBBoardController.h" +#include "frameworks/UBPlatformUtils.h" + #include "ui_trapFlash.h" #include "core/memcheck.h" @@ -201,6 +203,9 @@ void UBTrapFlashController::createWidget() UBApplication::boardController->downloadURL(QUrl(selectedObject.source), QPoint(0, 0), QSize(selectedObject.width, selectedObject.height)); } + QString freezedWidgetPath = UBPlatformUtils::applicationResourcesDirectory() + "/etc/freezedWidgetWrapper.html"; + mTrapFlashUi->webView->load(QUrl::fromLocalFile(freezedWidgetPath)); + mTrapFlashDialog->hide(); }