Commit 65691eb5 authored by Lubosz Sarnecki's avatar Lubosz Sarnecki
Browse files

Name xrdesktop consistently.

parent f68c4597
......@@ -44,7 +44,7 @@ function _sync() {
class VRControlIndicator extends PanelMenu.Button {
constructor() {
super(0.0, "VR Control");
super(0.0, "xrdesktop Control");
let icon = new St.Icon({style_class: 'gnome-vr-icon'});
......@@ -53,17 +53,15 @@ class VRControlIndicator extends PanelMenu.Button {
this.menu_section = new PopupMenu.PopupMenuSection();
this.menu.addMenuItem(this.menu_section);
_vrswitch = new PopupMenu.PopupSwitchMenuItem("VR Mirror");
_vrswitch = new PopupMenu.PopupSwitchMenuItem("Mirror to XR");
this.menu_section.addMenuItem(_vrswitch)
this.menu.connect('open-state-changed', _sync)
_vrswitch.connect("toggled", function(object, value) {
if(value) {
global.log("++++++++++++++++++++ Enable VR mode ++++++++++++++++++++");
_proxy.enabled = true;
} else {
global.log("++++++++++++++++++++ Disable VR mode +++++++++++++++++++");
_proxy.enabled = false;
}
});
......@@ -86,7 +84,7 @@ let indicator;
function enable() {
indicator = new VRControlIndicator;
Main.panel.addToStatusArea('vr-control-indicator', indicator);
Main.panel.addToStatusArea('xrdesktop-control-indicator', indicator);
}
function disable() {
......
{
"name": "XR Desktop Extension",
"description": "Control XR Desktop mode.",
"name": "xrdesktop extension",
"description": "Control xrdesktop.",
"uuid": "xrdesktop-extension@collabora.com",
"shell-version": ["3.30", "3.32"]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment