From ea3f02901e27c773cda7635fda8590cd9a0ce5ce Mon Sep 17 00:00:00 2001 From: Vilius Date: Tue, 16 May 2017 23:28:01 +0300 Subject: [PATCH] default tool update - saved for next session --- js/gui.js | 10 +++++++++- js/main.js | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/js/gui.js b/js/gui.js index b80342b..c047faf 100644 --- a/js/gui.js +++ b/js/gui.js @@ -65,12 +65,17 @@ function GUI_CLASS() { var COLOR_copy; this.draw_helpers = function () { + var active_tool = HELPER.getCookie('active_tool'); + if(active_tool == '') + active_tool = DRAW.active_tool; + DRAW.active_tool = active_tool; + //left menu var html = ''; for (var i in DRAW_TOOLS_CONFIG) { html += '