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)

Activity

added
os: macosSpecific to macOS operating system
topic: codeRelated to content of the project itself
on Jan 19, 2022
self-assigned this
on Jan 19, 2022
changed the title [-][ATL-483] mac not to quit with all windows closed[/-] [+]Mac not to quit with all windows closed[/+] on Jan 19, 2022
kittaakos

kittaakos commented on Sep 15, 2022

@kittaakos
Contributor

Originally reported by @paschlie here:

  • The App should not quit upon the closing of the last open editor window; instead it should open an open-project window, including an option to create a new project

If one considers the app's file menu; it really makes no sense to be forced to open a new file, prior to closing a currently open one; but if once the currently open file is closed, the app quits, then the file menu becomes inaccessible and can't be used to open another; which is not really a useful nor thereby a desirable behavior.

changed the title [-]Mac not to quit with all windows closed[/-] [+]Don't exit IDE application when last window is closed when running on macOS[/+] on Sep 26, 2023
removed their assignment
on Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Participants

      @kittaakos@fstasi

      Issue actions

        Don't exit IDE application when last window is closed when running on macOS · Issue #758 · arduino/arduino-ide