read-only mode: hide & disable main menu

This commit is contained in:
jean-emmanuel 2021-10-07 11:10:42 +02:00
parent c39f4670b4
commit 11c3e3324e
5 changed files with 31 additions and 25 deletions

View file

@ -143,7 +143,7 @@ module.exports = function(options={}) {
menu.popup({window: window, x: e.x, y: e.y })
}, false)
if (options.shortcuts) {
if (options.shortcuts && !settings.read('read-only')) {
shortcut.register(window,'CmdOrCtrl+R',function(){
window.reload()