empty json file after erasing all drawings

This commit is contained in:
abakkk 2019-03-15 12:45:20 +01:00
parent db447b1f5b
commit e3788ba37f
1 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,8 @@ var AreaManager = new Lang.Class({
eraseDrawing: function() {
for (let i = 0; i < this.areas.length; i++)
this.areas[i].erase();
if (this.settings.get_boolean('persistent-drawing'))
this.areas[Main.layoutManager.primaryIndex].saveAsJson();
},
togglePanelAndDockOpacity: function() {