Fix freeze on the second activation of screen sharing, when there are no permissions.
This commit is contained in:
parent
f34bfdf118
commit
5145657aa9
1 changed files with 2 additions and 4 deletions
|
|
@ -120,17 +120,15 @@ void PreviewManager::unsubscribe(QObject *sender) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void PreviewManager::activate() {
|
void PreviewManager::activate() {
|
||||||
App::postModelBlock([]() {
|
App::postModelAsync([]() {
|
||||||
lDebug() << "[PreviewManager] Activation";
|
lDebug() << "[PreviewManager] Activation";
|
||||||
CoreModel::getInstance()->getCore()->enableVideoPreview(true);
|
CoreModel::getInstance()->getCore()->enableVideoPreview(true);
|
||||||
CoreModel::getInstance()->getCore()->iterate();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void PreviewManager::deactivate() {
|
void PreviewManager::deactivate() {
|
||||||
App::postModelBlock([]() {
|
App::postModelAsync([]() {
|
||||||
lDebug() << "[PreviewManager] Deactivation";
|
lDebug() << "[PreviewManager] Deactivation";
|
||||||
CoreModel::getInstance()->getCore()->enableVideoPreview(false);
|
CoreModel::getInstance()->getCore()->enableVideoPreview(false);
|
||||||
CoreModel::getInstance()->getCore()->iterate();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue