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

Fix stuck progress dialog opening "My add-ons" without network #14479

Merged
merged 2 commits into from
Oct 4, 2018

Conversation

garbear
Copy link
Member

@garbear garbear commented Sep 26, 2018

When "My add-ons" is opened from the home screen, Kodi thinks it's a remote path and waits for network. This is because addons://user/ is detected as a remote path. If the network never comes up, the progress dialog doesn't go away. However, even when the user manually dismisses it, the add-on manager launches at the root addons:// instead of addons://user/, which is clearly incorrect.

Motivation and Context

Encountered when at a coffee shop in Sofia with broken WiFi.

How Has This Been Tested?

Tested on OSX with network disabled. After patch, progress dialog is not shown.

TODO: Need test cases.

Screenshots (if appropriate):

Kodi shows this dialog and never closes without network:

screen shot 2018-09-26 at 9 56 30 am

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • None of the above (please explain below)

@garbear garbear added Type: Fix non-breaking change which fixes an issue Component: Add-ons v18 Leia labels Sep 26, 2018
When a media window (of which the add-on manager extends) is opened, Kodi
waits for network for remote paths. The add-on manager is opened to
addons://user/, which Kodi detects as a remote path, causing a stuck
progress dialog when no network is available.
@garbear
Copy link
Member Author

garbear commented Oct 1, 2018

added a test case. Jenkins build this please

@garbear
Copy link
Member Author

garbear commented Oct 1, 2018

jenkins build this please

When the Movies window is opened, Kodi waits for network for remote paths.
The window is opened to sources://video/, which Kodi detects as a remote
path, causing a stuck progress dialog when no network is available.
@garbear
Copy link
Member Author

garbear commented Oct 2, 2018

I encountered another hang when flying with no internet

screen shot 2018-10-01 at 10 46 06 am

I pushed a fix, but maybe there are other missing cases?

@garbear
Copy link
Member Author

garbear commented Oct 2, 2018

@notspiff do the vfs changes look correct?

@garbear
Copy link
Member Author

garbear commented Oct 4, 2018

we're probably missing a few more cases, but I'll address these if they pop up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Add-ons Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants