feat(color): key shortcuts and quick menu favorites can be set to run stand alone Lua tools#7083
feat(color): key shortcuts and quick menu favorites can be set to run stand alone Lua tools#7083
Conversation
|
@elecpower - I've done the yaml read/write changes for this; but I could use your expertise for the shortcut and favorite editing. I'm thinking that if the shortcut/favorite is set to QM_APP then show a file selector next to it with the Lua script tool name (like what is done for Lua Script SF/GF editing). It's further complicated because the Lua script name may not be the file name - it could be the name embedded in the script file (see radio/src/gui/colorlcd/radio/radio_tools.cpp loadLuaTools() function). |
8517949 to
5cd4169
Compare
|
And guess what happens when std::string is added to a struct (again!)? Clue the simulation poops its pants during to initialisation in GeneralSettings copy operator. Found with GX12 in Linux. |
Replaceswith char pointers and dynamic allocation. |
e7f8030 to
4eb1286
Compare
|
@philmoz I've started working on this |
Looks good. I made one change to use the folder name as the default for folder based tools. |
|
I know yes to this question creates more work for us but should the lua tools dropdowns be mutually exclusive? |
Not sure what you mean? |
What is the likelihood the same lua script would need to be assigned to multiple favourites or shortcuts? Mutually exclusive within each category. |
Probably overkill. |
|
Your feature. Just thought I would ask. |
|
For the favourites/shortcuts it's pretty harmless also... so what if you set them all to MPM Config or whatever!? |
If you set them all the same maybe you should seek medical advice and not operate flying objects or heavy machinery. |
5b1b1cf to
71ce4ca
Compare
|
Fixed the name issue on radio hardware. When editing an existing favorite / key shortcut it should select the existing value in the popup list. Gaps in the favorites list might be tricky. |
That is more just a "if possible"... it is certainly not a blocker. I was initially thinking it could simply add "blank" icons that would probably look just as odd. Yes, that seems to be working just fine now - and I see what you mean... didn't even notice it was selecting the current entry for the apps but not the settings.
So you want to re-add it later? Companion currently still does this, but unless you change the value it will preserve duplicates from the radio, so won't need changing to match if this is the case. |
Filtering fixed to work with both menu items and apps. |
b8eb714 to
7103739
Compare
|
Excellent work. Is work already underway on translating the quick menu? In my case, German would be preferable. |
|
If there isn't an open PR, likely not. If German is what you want, you can look over these two that were opened 5-8 hours ago and give feedback. |







Allow key shortcuts and quick menu favorites to be set to Lua stand alone scripts.
Todo: