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:
parent
6ec8480052
commit
144acb1d02
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user