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:
parent
1a27d7dfc0
commit
123fb350ce
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user