Skip to content

Don't exit IDE application when last window is closed when running on macOS #758

Open
@fstasi

Description

@fstasi

Why

As reported closing the IDE when the last window is closed is an uncommon pattern in IDEs, and for good. This will enable opening projects from within the IDE2 even when no projects are currently open.

Expected behavior when closing the last sketch (window):

  • on Linux and Windows:
    • IDE2 quits. (Nothing to do. IDE2 behaves like this.)
  • on macOS:
    • IDE2 does not quit,
    • The IDE2 icon stays on the dock: clicking on the IDE2 opens a new temp sketch. Every time the user clicks on the IDE2 icon on the dock after closing the last window, the temp sketch number increases: for example sketch_sept15a, sketch_sept15b, etc.
    • The Arduino IDE status bar remains active and usable. For instance, macOS users can open a sketch from the sketchbook, a recent one, an example, etc.
    • macOS users can quit the IDE2 from Arduino IDE > Quit Arduin IDE (or with +Q)

Metadata

Metadata

Assignees

No one assigned

    Labels

    os: macosSpecific to macOS operating systemtopic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions