-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[addons] introduce advanced setting to allow showing all dependencies in dialog #18986
Conversation
v19? Don't think we accept new features at this stage, especially as this PR intorduces new GUI strings, which need to be translated into >70 languages until v19 release. |
I was sort of inclined to say the same. This isn't really a new feature but restores Leia behaviour instead for python addon developers. Nevertheless, @ksooo is right. So probably something like below would work?
|
all perfectly true. then we‘ll go the advancedsettings.xml way for now if no one objects. dumb it wasn‘t discovered earlier. would that be ok @ksooo ? |
It's a shame I did not run into it earlier. But understandable from a release point of view. Advancedsettings.xml seems like a good place for now. Perhaps we can not delay the GUISettings until v20, but v19.1? |
So far we had the policy that minors are for bug fixes only. And I'm not sure there will be any translation cycles for minors. advancedsettings approch is fine for me. Not sure this will need a gui setting at all. For me this is a very special, beyond expert level functionality, thus I would even stick with advancedsettings as the final solution. |
agreed, the gui change was the first thing on my mind. as you can see the first isn't the best in that case. |
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.
No changes requested, but suggestions offered for future PRs:
-
Could be
const bool showAllDependencies = ...
-
Could split long boolean conditions for readability, e.g.:
bool showDependency = false;
if (showAllDependencies)
showDependency = true;
else if (addonInstalled && addonInstalled->MainType() != ADDON_SCRIPT_MODULE)
showDependency = true;
else if (addonAvailable && addonAvailable->MainType() != ADDON_SCRIPT_MODULE)
showDependency = true;
else if (!addonAvailable && !addonInstalled)
showDependency = true;
if (showDependency)
{
...
}
Description
by setting
<showalldependencies>yes</showalldependencies>
in advancedsettings.xmlHow Has This Been Tested?
examined the depends dialog for the YouTube add-on in the official repository
Types of change
Checklist:
like discussed on slack with @basrieter