status/remote-access: Remove menu for stopping screencasts

It is now handled by a dedicated panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>
This commit is contained in:
Ivan Molodetskikh 2022-02-09 09:59:03 +03:00 committed by Marge Bot
parent 6ec8480052
commit 144acb1d02

View File

@ -51,15 +51,6 @@ class RemoteAccessApplet extends PanelMenu.SystemIndicator {
this._recordingIndicator = this._addIndicator(); this._recordingIndicator = this._addIndicator();
this._recordingIndicator.icon_name = 'media-record-symbolic'; this._recordingIndicator.icon_name = 'media-record-symbolic';
this._recordingIndicator.add_style_class_name('screencast-indicator'); this._recordingIndicator.add_style_class_name('screencast-indicator');
this._recordingItem = new PopupMenu.PopupSubMenuMenuItem(
_('Screen Recording in Progress'),
true
);
this._recordingItem.menu.addAction(_('Stop'),
() => Main.screenshotUI.stopScreencast());
this._recordingItem.icon.icon_name = 'media-record-symbolic';
this.menu.addMenuItem(this._recordingItem);
} }
_isScreenShared() { _isScreenShared() {
@ -80,7 +71,6 @@ class RemoteAccessApplet extends PanelMenu.SystemIndicator {
} }
this._recordingIndicator.visible = this._isRecording(); this._recordingIndicator.visible = this._isRecording();
this._recordingItem.visible = Main.screenshotUI.screencast_in_progress;
} }
_onStopped(handle) { _onStopped(handle) {