Shutdown preview on removing preview sticker from GUI.
This commit is contained in:
parent
a93e646ce4
commit
1cf6a076d4
1 changed files with 3 additions and 0 deletions
|
|
@ -41,8 +41,11 @@ CameraGui::CameraGui(QQuickItem *parent) : QQuickFramebufferObject(parent) {
|
|||
|
||||
mRefreshTimer.start();
|
||||
}
|
||||
|
||||
// TODO : Deactivate only if there are no previews to display (Could be open in settings and calls)
|
||||
CameraGui::~CameraGui() {
|
||||
mustBeInMainThread("~" + getClassName());
|
||||
App::postModelSync([this]() { CoreModel::getInstance()->getCore()->enableVideoPreview(false); });
|
||||
}
|
||||
|
||||
QQuickFramebufferObject::Renderer *CameraGui::createRenderer() const {
|
||||
|
|
|
|||
Loading…
Reference in a new issue