paradoxxxzero/gnome-shell-system-monitor-applet — Issue #56: Remove applet when disabling extension (patch included)
Author: dekadenZ
Created: 2011-10-24 19:56:15+00:00
State: open

The following patch removes the system monitor applet from the gnome shell when disabling its extension.

```diff
diff --git a/system-monitor@paradoxxx.zero.gmail.com/extension.js b/system-monitor@paradoxxx.zero.gmail.com/extension.js
index 42e3acf..2fafa12 100644
--- a/system-monitor@paradoxxx.zero.gmail.com/extension.js
+++ b/system-monitor@paradoxxx.zero.gmail.com/extension.js
@@ -932,6 +932,6 @@ var enable = function () {
};

var disable = function () {
- // TODO: DISABLE PROPERLY
log("System monitor applet disable");
+ Main.__sm.tray.destroy()
};
```