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

Move Application:: hide_application, hide_others and set_menu to Mac platform extension #1863

Merged
merged 5 commits into from
Jul 8, 2021

Conversation

maan2003
Copy link
Collaborator

@maan2003 maan2003 commented Jul 7, 2021

No description provided.

Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love to see this, thanks 🥳

@@ -183,10 +183,18 @@ pub mod sys {
/// Quit the running application. This command is handled by the druid library.
pub const QUIT_APP: Selector = Selector::new("druid-builtin.quit-app");

/// Hide the application. (mac only?)
/// Hide the application. (mac only)
#[cfg_attr(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spent a few minutes thinking about whether this is too fancy, but I think it's a good change. 👍

@maan2003
Copy link
Collaborator Author

maan2003 commented Jul 7, 2021

why are menu::sys::{os} not behind cfg?

@cmyr
Copy link
Member

cmyr commented Jul 7, 2021

why are menu::sys::{os} not behind cfg?

not for any concrete reason.

@maan2003
Copy link
Collaborator Author

maan2003 commented Jul 7, 2021

lets leave it for now and allow(deprecated). I would prefer it to be separate PR, if needed

@maan2003 maan2003 merged commit 52f257b into linebender:master Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants