The code that added the '..' item when lists were empty was not kicking in for filtered lists, as we were adding it before filtering only if the list was empty.
Moving it afterwards means it works as intended.
This has the side-effect of removing an unneeded toast dialog that could annoy users, as well as automatically changing the directory back up a folder on empty lists when that may not have been what the user was wanting.
Fixes the issues on trac at #13662 and #13837.
Well you know my opinion on the matter. If I disable "Show parent folder items" in the settings I do it because I don't want to see the ".." anywhere (which is why I added the jump-back logic). But I guess I'm the only one with that opinion.
Agree with @Montellese
Also I think we discussed at devcon on getting rid of those dots altogether because we have the back button almost everywhere
hmm.. doesn't work on my end.
i still get an empty list when i apply a filter that doesn't produce any results.
same issue when marking all as watched and toggling 'hide watched'.
Toggling hide watched should work because that triggers a call to CGUIMediaWindow::Update() and the actual watched filtering is done in CGUIWindowVideoNav::OnFilterItems but filtering doesn't. So this logic would have to be duplicated and also placed in the filtering logic.
fixed: the auto-addition of '..' when the list is empty did not show …
…up on filtered lists
remove unnecessary toast + parent folder of empty lists after filteri…
…ng - the '..' item is shown, so this won't be hit anyway
Updated to a version I bothered testing.
@Montellese this just fixes the previously broken behaviour - i.e. we've had this functionality since Eden at least, whether you like it or not :p I suggest post-Frodo if it bugs you heaps then change the "show parent items" to a tri-state (never, always, only for an empty list).
yup, all working now.