mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:52:26 +02:00
DEV-2832: Automatically minimize Screen Share app when sharing window is confirmed
This commit is contained in:
parent
37efdfd3d4
commit
d4b50523c2
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,8 @@
|
||||||
// Distributed under the Apache License, Version 2.0.
|
// Distributed under the Apache License, Version 2.0.
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
const { remote } = require('electron');
|
||||||
|
|
||||||
// Helpers
|
// Helpers
|
||||||
function handleError(error) {
|
function handleError(error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
@ -221,6 +223,7 @@ function onAccessApproved(desktop_id) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, gotStream, handleError);
|
}, gotStream, handleError);
|
||||||
|
remote.getCurrentWindow().minimize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue