From 0f43b026855867a637c2c2f62f471eb728344c76 Mon Sep 17 00:00:00 2001 From: smolgumball Date: Sat, 29 Jan 2022 17:24:57 -0700 Subject: [PATCH] Add Zoom -> Reset Zoom command --- electron/menu.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/electron/menu.js b/electron/menu.js index 637f197e5..9cf62d755 100644 --- a/electron/menu.js +++ b/electron/menu.js @@ -312,6 +312,16 @@ function getMenu(window) { } }, }, + { + label: "Reset Zoom", + enabled: utils.getZoomFactor() !== 1, + accelerator: "CommandOrControl+num0", + click: () => { + utils.setZoomFactor(window, 1); + refreshMenu(window); + log.log("Reset zoom"); + }, + }, ], }, {