Skip to content

Commit

Permalink
Cancel the file monitor and clear the event compression timeout when …
Browse files Browse the repository at this point in the history
…destroying the indicator.
  • Loading branch information
katastrophie committed Jan 10, 2012
1 parent 8c7bc8d commit 5d85bea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions extension.js
Expand Up @@ -51,12 +51,18 @@ AppsMenu.prototype = {

_init: function() {
PanelMenu.SystemStatusButton.prototype._init.call(this, 'start-here');
this.connect('destroy', Lang.bind(this, this._onDestroy));
this._setupDirectory();
this._setupAppMenuItems();
this._setupNewDialog();
this._setupDirectoryMonitor();
},

_onDestroy: function() {
this._monitor.cancel();
Mainloop.source_remove(this._appDirectoryTimeoutId);
},

/*
* create dir unless exists
*/
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
@@ -1 +1 @@
{"shell-version": ["3.2","3.3.2"], "uuid": "QuickLaunch@github.com", "name": "QuickLaunch", "description": "Quick Launch - Launches custom made .desktop files from a directory", "url": "https://github.com/katastrophie/QuickLaunch"}
{"shell-version": ["3.2","3.3.2"], "uuid": "QuickLaunch@github.com", "name": "QuickLaunch", "description": "Quick Launch - Launch custom made .desktop files from a directory", "url": "https://github.com/katastrophie/QuickLaunch"}

0 comments on commit 5d85bea

Please sign in to comment.