Skip to content

Items automatically added to View menu on macOS #2804

@probablykasper

Description

@probablykasper

Describe the bug

When you have a View menu, these items are automatically added:

image

I initially thought macOS did this automatically (it does for Edit > Start Dictation and Edit > Emoji & Symbols), but apps like Discord don't have it.

To Reproduce

Create a menu called View:

.add_submenu(Submenu::new(
    "View",
    Menu::new(), // can be empty or not
  ));

Expected behavior

Either don't auto-add them, or provide a way to not auto-add them

Platform and Versions (required):

Details
Operating System - Mac OS, version 10.15.7 X64

Node.js environment
  Node.js - 14.18.1
  @tauri-apps/cli - 1.0.0-beta.10
  @tauri-apps/api - 1.0.0-beta.8

Global packages
  npm - 6.14.15
  yarn - 1.22.17

Rust environment
  rustc - 1.56.0
  cargo - 1.56.0

App directory structure
/node_modules
/.github
/src-tauri
/build
/.git
/assets
/src

App
  tauri.rs - 1.0.0-beta.8
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../build
  devPath - http://localhost:8000
  framework - Svelte

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions