Merge pull request #2874 from smolgumball/add-zoom-reset

electron ui: add `Zoom -> Reset Zoom` command
This commit is contained in:
hydroflame 2022-03-10 21:45:45 -05:00 committed by GitHub
commit 69f7f4896e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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");
},
},
],
},
{