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

[addons] introduce advanced setting to allow showing all dependencies in dialog #18986

Merged
merged 1 commit into from
Dec 28, 2020
Merged

[addons] introduce advanced setting to allow showing all dependencies in dialog #18986

merged 1 commit into from
Dec 28, 2020

Conversation

howie-f
Copy link
Contributor

@howie-f howie-f commented Dec 27, 2020

Description

  • allows to disable filtering of low-level dependencies (e.g. ADDON_SCRIPT_MODULE) in the dependency select dialog
    by setting <showalldependencies>yes</showalldependencies> in advancedsettings.xml

How Has This Been Tested?

examined the depends dialog for the YouTube add-on in the official repository

Types of change

  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)

Checklist:

like discussed on slack with @basrieter

@howie-f howie-f added Type: Cleanup non-breaking change which removes non-working or unmaintained functionality Type: Improvement non-breaking change which improves existing functionality Component: Add-ons v19 Matrix labels Dec 27, 2020
@howie-f howie-f added this to the Matrix 19.0-RC1 milestone Dec 27, 2020
@ksooo
Copy link
Member

ksooo commented Dec 27, 2020

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.

@enen92
Copy link
Member

enen92 commented Dec 27, 2020

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?

  • Use an advanced setting instead of an expert level setting for v19
  • Prepare a PR to drop the advanced setting and use an expert setting for v20
  • It's not the time to do the keyboard cleanup commit. Make a second PR for v20 with that instead

@howie-f
Copy link
Contributor Author

howie-f commented Dec 27, 2020

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 ?

@basrieter
Copy link
Contributor

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?

@ksooo
Copy link
Member

ksooo commented Dec 27, 2020

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.

@howie-f
Copy link
Contributor Author

howie-f commented Dec 27, 2020

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.
guess addon-devs who need to see all dependencies set it up once and that's that.

@enen92 enen92 self-requested a review December 27, 2020 14:01
@howie-f howie-f changed the title [addons] introduce expert setting to allow showing all dependencies in dialog [addons] introduce advanced setting to allow showing all dependencies in dialog Dec 27, 2020
Copy link
Member

@garbear garbear left a 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)
{
  ...
}

@howie-f howie-f merged commit af8aded into xbmc:master Dec 28, 2020
@howie-f howie-f deleted the v19-depdialog branch December 28, 2020 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Add-ons Type: Cleanup non-breaking change which removes non-working or unmaintained functionality Type: Improvement non-breaking change which improves existing functionality v19 Matrix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants