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

Add support for hiding main window and starting with hidden main window. #91262

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Apr 27, 2024

In combination with the recently added StatusIndicator can be used to implement "minimize to tray" function, or
make other background only apps.

  • Adds support for setting main window visible property in runtime (get_windows().visible = ...).
  • Adds display/window/size/visible project setting to configure initial main window visibility.

Implemented for Windows, macOS, and Linux/X11.

@Calinou
Copy link
Member

Calinou commented Apr 27, 2024

  • Adds display/window/size/visible project setting to configure initial main window visibility.

When this is disabled, it might be worth printing a message on startup in TOOLS_ENABLED builds, so you know the main window is supposed to be hidden when you read the Output panel.

Something like:

Note: The project is now running, but since the display/window/size/visible project setting is disabled, the project window will not be visible.

@bruvzg bruvzg force-pushed the main_window_hide branch from 5c328c4 to 2848ad9 Compare May 15, 2024 08:33
@bruvzg bruvzg force-pushed the main_window_hide branch 2 times, most recently from ea19ab0 to 2b7ff93 Compare May 28, 2024 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants