From 98e5670011495cae2dac5f6787d30d505311702a Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 8 Apr 2025 10:32:34 +0200 Subject: [PATCH] root: `hideMenu` not working when `--read-only` is set --- CHANGELOG.md | 1 + src/client/widgets/containers/root.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6399e1d..fb2ee1fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - bug fixes - file browser: drive listing failing on recent windows + - root: `hideMenu` not working when `--read-only` is set - widgets - add `onTouch` to all container widgets diff --git a/src/client/widgets/containers/root.js b/src/client/widgets/containers/root.js index 3e131a28..6cf72481 100644 --- a/src/client/widgets/containers/root.js +++ b/src/client/widgets/containers/root.js @@ -59,8 +59,6 @@ class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'ro checkMenuVisibility() { - if (READ_ONLY) return - mainMenu = mainMenu || require('../../ui/main-menu') if (this.getProp('hideMenu')) {