From beb52273a23243e761da543851dcced0afd6c30c Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 26 Nov 2017 13:04:14 +0100 Subject: [PATCH] Bug: Can't set cutom image on folder --- src/js/background.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/background.js b/src/js/background.js index cb15629..c988a61 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -544,8 +544,11 @@ app.GridNodes.updateNode = function(gridNode, value, callback){ if(value){ if(value.title) gridNode.title = value.title; if(value.titleLocked!=null) gridNode.titleLocked = value.titleLocked; - if(value.imageLocked!=null) gridNode.imageLocked = value.imageLocked; - if(gridNode.imageLocked == false){ + if(value.imageLocked!=null){ + gridNode.imageLocked = value.imageLocked; + if(value.image) gridNode.image = value.image; + else delete gridNode.image; + } else if(gridNode.imageLocked != true){ if(value.image) gridNode.image = value.image; else delete gridNode.image; }