Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fstasi opened this issue Jan 19, 2022 · 1 comment · May be fixed by #487
Open

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

fstasi opened this issue Jan 19, 2022 · 1 comment · May be fixed by #487
Labels
os: macos Specific to macOS operating system topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@fstasi
Copy link
Contributor

fstasi commented Jan 19, 2022

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)
@fstasi fstasi added os: macos Specific to macOS operating system topic: code Related to content of the project itself type: enhancement Proposed improvement labels Jan 19, 2022
@fstasi fstasi self-assigned this Jan 19, 2022
@fstasi fstasi changed the title [ATL-483] mac not to quit with all windows closed Mac not to quit with all windows closed Jan 19, 2022
@fstasi fstasi linked a pull request Jan 19, 2022 that will close this issue
@kittaakos kittaakos assigned kittaakos and unassigned fstasi Sep 15, 2022
@kittaakos
Copy link
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.

@per1234 per1234 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 Sep 26, 2023
@kittaakos kittaakos removed their assignment Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: macos Specific to macOS operating system topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants