Commit 123fb350 authored by Cosimo Cecchi's avatar Cosimo Cecchi
Browse files

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

https://bugzilla.gnome.org/show_bug.cgi?id=688004
parent 1a27d7df
......@@ -111,7 +111,7 @@ const GnomeShell = new Lang.Class({
},
_onScreenshotComplete: function(obj, result, area, flash, invocation) {
if (flash) {
if (flash && result) {
let flashspot = new Flashspot.Flashspot(area);
flashspot.fire();
}
......
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