From 8ee4d6d84d06bb48b05174dd0988056a070479cf Mon Sep 17 00:00:00 2001 From: Bequa La Froth Date: Mon, 24 Dec 2018 09:18:56 +0100 Subject: [PATCH 1/2] fix Grid(H) icon not updating when pressing H --- desktop/sources/scripts/guide.js | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/sources/scripts/guide.js b/desktop/sources/scripts/guide.js index 7a7b015..9cdb29c 100644 --- a/desktop/sources/scripts/guide.js +++ b/desktop/sources/scripts/guide.js @@ -44,6 +44,7 @@ DOTGRID.Guide = function () { this.toggle = function () { this.show_extras = !this.show_extras this.update() + DOTGRID.interface.update(true) } this.resize = function (size) { From ddfb6cca51b4afd9cf899cb78859c764a32d78e6 Mon Sep 17 00:00:00 2001 From: Bequa La Froth Date: Mon, 24 Dec 2018 10:26:58 +0100 Subject: [PATCH 2/2] hide mirror guides on H --- desktop/sources/scripts/guide.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop/sources/scripts/guide.js b/desktop/sources/scripts/guide.js index 9cdb29c..00b1a3a 100644 --- a/desktop/sources/scripts/guide.js +++ b/desktop/sources/scripts/guide.js @@ -58,6 +58,8 @@ DOTGRID.Guide = function () { } this.draw_mirror = function () { + if (!this.show_extras) { return } + if (DOTGRID.tool.style().mirror_style === 0) { return } const middle = { x: DOTGRID.tool.settings.size.width + (DOTGRID.grid_width), y: DOTGRID.tool.settings.size.height + (2 * DOTGRID.grid_height) }