Remember the state of cba per user in their owned pads

This commit is contained in:
yflory
2020-04-15 15:36:37 +02:00
parent 87fc1f8daf
commit 94c9e47d32
2 changed files with 9 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ define([
$button.remove();
var md = Util.clone(metadataMgr.getMetadata());
md.enableColors = true;
common.setAttribute(['code', 'enableColors'], true);
metadataMgr.updateMetadata(md);
setButton(false);
});
@@ -86,6 +87,7 @@ define([
$button.remove();
var md = Util.clone(metadataMgr.getMetadata());
md.enableColors = false;
common.setAttribute(['code', 'enableColors'], false);
metadataMgr.updateMetadata(md);
setButton(true);
});