screencast: Properly stop all recordings on session mode changes
We currently just clear out the map of recorders (which results in the top bar indicator to be hidden), but don't stop the actual recordings. Spotted by Adel Gadllah on IRC.
This commit is contained in:
parent
28552d4b38
commit
0035de4ab7
@ -68,8 +68,8 @@ const ScreencastService = new Lang.Class({
|
|||||||
if (Main.sessionMode.allowScreencast)
|
if (Main.sessionMode.allowScreencast)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this._recorders.clear();
|
for (let sender of this._recorders.keys())
|
||||||
this.emit('updated');
|
this._stopRecordingForSender(sender);
|
||||||
},
|
},
|
||||||
|
|
||||||
_onNameVanished: function(connection, name) {
|
_onNameVanished: function(connection, name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user