screenshot: don't fire flash if we failed to take picture

https://bugzilla.gnome.org/show_bug.cgi?id=688004
This commit is contained in:
Cosimo Cecchi 2012-11-09 13:13:22 -05:00
parent 1a27d7dfc0
commit 123fb350ce

View File

@ -111,7 +111,7 @@ const GnomeShell = new Lang.Class({
}, },
_onScreenshotComplete: function(obj, result, area, flash, invocation) { _onScreenshotComplete: function(obj, result, area, flash, invocation) {
if (flash) { if (flash && result) {
let flashspot = new Flashspot.Flashspot(area); let flashspot = new Flashspot.Flashspot(area);
flashspot.fire(); flashspot.fire();
} }