[gnome-shell] background: stop monitoring file after removing from cache
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] background: stop monitoring file after removing from cache
- Date: Sat, 6 Apr 2013 14:46:07 +0000 (UTC)
commit 0376f22d412a3df36a5627243ea97958179f1d00
Author: Ray Strode <rstrode redhat com>
Date: Thu Apr 4 16:36:56 2013 -0400
background: stop monitoring file after removing from cache
https://bugzilla.gnome.org/show_bug.cgi?id=697395
js/ui/background.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/background.js b/js/ui/background.js
index 2dbde4a..0e9c3aa 100644
--- a/js/ui/background.js
+++ b/js/ui/background.js
@@ -126,6 +126,11 @@ const BackgroundCache = new Lang.Class({
},
removeImageContent: function(content) {
+ let filename = content.get_filename();
+
+ if (filename && this._fileMonitors[filename])
+ delete this._fileMonitors[filename];
+
this._removeContent(this._images, content);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]