-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
QuickMenu: add long-press on profile #10671
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yparitcher : ok for you?
I thought to do it slightly differently in yparitcher@4d0578d What are your thoughts? (I dont intend to rewrite all you dispatcher PRs, i just like keeping the function signature clean :) |
Can you please clarify what are the benefits? |
@yparitcher : any followup discussion ? |
Sorry for the delay, I thought it would be better not to complicate If people think otherwise then that is ok also. |
To summarize: the purpose is to "execute" a profile overriding its |
I agree with trying to avoid tableDeepCopy.
|
Something like overrides seems clearer unless I misunderstand the intent. |
|
Update: dispatcher execution is managed via the container (table) |
Not good, I've missed some events get gesture as an argument. |
So, 3 arguments to |
font_size = 22, | ||
callback = function() | ||
UIManager:close(quickmenu) | ||
Dispatcher:execute(settings, { qm_show = false }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a nil or false "gesture" as the 2nd argument ?
(I guess it would look odd if we put "gesture" inside the exec_props table ?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I guess it would look odd if we put "gesture" inside the exec_props table ?
I think it'll simplify a little bit.
@yparitcher can you please review.
LGTM You can merge the gesture argument if you want, but you don't have to. |
Shouldn't we use |
On line now 1084? I Looks like we could. |
And further, there are two more checks. |
if ((exec_props == nil or exec_props.qm_show == nil) and settings.settings and settings.settings.show_as_quickmenu) | ||
or (exec_props and exec_props.qm_show) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conditional is a bit long and confusing to read, bur not sure of any way that is better
Thank you very much @hius07 ! |
Only thing missing is that Font name change doesn’t have notification, but I think this is because usually fonts are select in the top menu, while they are all visible :D |
Fixes #10668 (comment).
Long-press on a profile entry in a QuickMenu calls a new QM with the content of the profile and "Execute all" button.
This change is