From 633a4250d1883d74fd568deb64d54d24642b331a Mon Sep 17 00:00:00 2001
From: dragonwocky <thedragonring.bod@gmail.com>
Date: Thu, 9 Jul 2020 16:55:16 +1000
Subject: [PATCH] swap maximise buttons

---
 CHANGELOG.md                     | 2 +-
 docs/changelog.html              | 2 +-
 resources/icons/maximise_off.svg | 2 +-
 resources/icons/maximise_on.svg  | 2 +-
 resources/tray.js                | 5 -----
 5 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 336ee72..753a699 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,7 +15,7 @@ but can still easily be enabled by following instructions in the [docs](README.m
 - bugfix: odd mix of `\\` and `/` being used for windows filepaths.
 - bugfix: app no longer crashes when sidebar is toggled.
 
-known remaining/confirmed issues:
+known/confirmed remaining issues:
 
 - russian symbols not supported by UTF-8
 
diff --git a/docs/changelog.html b/docs/changelog.html
index aed0bc2..97d8303 100644
--- a/docs/changelog.html
+++ b/docs/changelog.html
@@ -23,7 +23,7 @@ better with the OS while not being out-of-place in notion).</li>
 <li>bugfix: odd mix of <code>\\</code> and <code>/</code> being used for windows filepaths.</li>
 <li>bugfix: app no longer crashes when sidebar is toggled.</li>
 </ul>
-<p>known remaining/confirmed issues:</p>
+<p>known/confirmed remaining issues:</p>
 <ul>
 <li>russian symbols not supported by UTF-8</li>
 </ul>
diff --git a/resources/icons/maximise_off.svg b/resources/icons/maximise_off.svg
index 99542c8..b8967f4 100644
--- a/resources/icons/maximise_off.svg
+++ b/resources/icons/maximise_off.svg
@@ -1,3 +1,3 @@
 <svg width="250" height="250" viewBox="0 0 250 250" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M16.1311 225.96V76.72H84.5111V8.07999H233.751V157.32H165.371V225.96H16.1311ZM110.771 53.58V76.72H165.371V131.32H207.491V53.58H110.771ZM42.3911 199.96H139.111V122.22H42.3911V199.96Z" fill="black"/>
+<path d="M14.7346 227.26V7.03998H235.215V227.26H14.7346ZM46.4546 195.8H203.495V70.48H46.4546V195.8Z" fill="black"/>
 </svg>
diff --git a/resources/icons/maximise_on.svg b/resources/icons/maximise_on.svg
index b8967f4..99542c8 100644
--- a/resources/icons/maximise_on.svg
+++ b/resources/icons/maximise_on.svg
@@ -1,3 +1,3 @@
 <svg width="250" height="250" viewBox="0 0 250 250" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M14.7346 227.26V7.03998H235.215V227.26H14.7346ZM46.4546 195.8H203.495V70.48H46.4546V195.8Z" fill="black"/>
+<path d="M16.1311 225.96V76.72H84.5111V8.07999H233.751V157.32H165.371V225.96H16.1311ZM110.771 53.58V76.72H165.371V131.32H207.491V53.58H110.771ZM42.3911 199.96H139.111V122.22H42.3911V199.96Z" fill="black"/>
 </svg>
diff --git a/resources/tray.js b/resources/tray.js
index 912c249..fae6be3 100644
--- a/resources/tray.js
+++ b/resources/tray.js
@@ -47,7 +47,6 @@ function enhancements() {
         contextMenu.getMenuItemById('startup').checked
           ? electron_1.app.setLoginItemSettings({ openAtLogin: true })
           : electron_1.app.setLoginItemSettings({ openAtLogin: false });
-        tray.setContextMenu(contextMenu);
       },
     },
     {
@@ -57,7 +56,6 @@ function enhancements() {
       checked: store.openhidden,
       click: () => {
         store.openhidden = contextMenu.getMenuItemById('openhidden').checked;
-        tray.setContextMenu(contextMenu);
       },
     },
     {
@@ -67,7 +65,6 @@ function enhancements() {
       checked: store.maximized,
       click: () => {
         store.maximized = contextMenu.getMenuItemById('maximized').checked;
-        tray.setContextMenu(contextMenu);
       },
     },
     {
@@ -77,7 +74,6 @@ function enhancements() {
       checked: store.tray,
       click: () => {
         store.tray = contextMenu.getMenuItemById('tray').checked;
-        tray.setContextMenu(contextMenu);
       },
     },
     {
@@ -88,7 +84,6 @@ function enhancements() {
       click: () => {
         store.theme = contextMenu.getMenuItemById('theme').checked;
         electron_1.BrowserWindow.getAllWindows().forEach((win) => win.reload());
-        tray.setContextMenu(contextMenu);
       },
     },
     {