mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
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() {
|
||||
App::postModelBlock([]() {
|
||||
App::postModelAsync([]() {
|
||||
lDebug() << "[PreviewManager] Activation";
|
||||
CoreModel::getInstance()->getCore()->enableVideoPreview(true);
|
||||
CoreModel::getInstance()->getCore()->iterate();
|
||||
});
|
||||
}
|
||||
|
||||
void PreviewManager::deactivate() {
|
||||
App::postModelBlock([]() {
|
||||
App::postModelAsync([]() {
|
||||
lDebug() << "[PreviewManager] Deactivation";
|
||||
CoreModel::getInstance()->getCore()->enableVideoPreview(false);
|
||||
CoreModel::getInstance()->getCore()->iterate();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue