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

feat: somewhere to place extra actions by platform #2146

Merged
merged 4 commits into from
Feb 3, 2024

Conversation

Decodetalkers
Copy link
Contributor

I have view iced-sckt forked iced, and add the extra actions. and there do are some extra actions, like set margin for layer-shell, set lock for ext-session-shell. I think add an any will be of help maybe

I do not know if it is right..

The core team is busy and does not have time to mentor nor babysit new contributors. If a member of the core team thinks that reviewing and understanding your work will take more time and effort than writing it from scratch by themselves, your contribution will be dismissed. It is your responsibility to communicate and figure out how to reduce the likelihood of this!

Read the contributing guidelines for more details: https://github.com/iced-rs/iced/blob/master/CONTRIBUTING.md

Decodetalkers and others added 2 commits February 3, 2024 14:54
I have view iced-sckt forked iced, and add the extra actions. and there
do are some extra actions, like set margin for layer-shell, set lock for
ext-session-shell. I think add an any will be of help maybe
@hecrj hecrj added feature New feature or request shell addition labels Feb 3, 2024
@hecrj hecrj added this to the 0.12 milestone Feb 3, 2024
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

This seems reasonable.

The alternative is introducing a new Custom generic type in Action, but it inevitably ends up affecting the Command type and the Program trait; increasing complexity considerably.

I believe sacrificing a bit of type-safety for this rare use case is fine. Thank you! 🙇

@hecrj hecrj enabled auto-merge February 3, 2024 14:14
@hecrj hecrj merged commit 1d58d44 into iced-rs:master Feb 3, 2024
13 checks passed
@Decodetalkers Decodetalkers deleted the customaction branch February 4, 2024 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition feature New feature or request shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants