message: construction: Prevent opening debug windows in a debug window
diff: @@ -288,7 +288,9 @@ function createMenus() {
  ],
  },
  {},
  - {
  + (() => {
  + if (!RunningConfig.data.isDebug) {
  + return {
  label: 'menus.Window.Debug.Debug',
  list: [
  {
  @@ -296,8 +298,12 @@ function createMenus() {
  action: () => openDebugClient(),
  },
  ],
  - },
  - {},
  + }
  + }
  + })(),
  + (() => {
  + if (!RunningConfig.data.isDebug) return {}
  + })(),
  {
  label: 'menus.Window.OpenDevTools',
  action: () => ipcRenderer.invoke('toggle-devtools'),
  