Skip to content

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

@fstasi

Description

@fstasi

Describe the request

Expected behavior when closing the last sketch (window):

  • Arduino IDE does not quit.
  • The Arduino IDE icon stays on the dock.
  • Clicking on the icon opens a new temp sketch. Every time the user clicks on the 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 application from by selecting Arduino IDE > Quit Arduino IDE from the macOS menu bar (or with +Q).

🙂 This will enable opening sketches in Arduino IDE even when no sketches are currently open.

Describe the current behavior

Arduino IDE application closes when the last window is closed.

🙁 This is non-standard behavior on macOS.

Additional context

Unlike macOS. It is standard for applications to close when no window is open on Linux and Windows. So the current behavior of Arduino IDE on those operating systems is correct.


Originally requested at arduino/arduino-pro-ide#334 (comment)

Additional requests

Related

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