adamsutton / tvheadend

Tvheadend is a TV streaming server for Linux supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as input sources.
http://www.lonelycoder.com/hts/tvheadend_overview.html
Other
18 stars 5 forks source link

Disable/hide services for disabled mux #60

Closed clandmeter closed 10 years ago

clandmeter commented 10 years ago

When we disable a mux its services remain active as in they are still shown in the services page. We should grey them out or remove them altogether which would be my prefered behaviour. I like a clean services tab which only displays things I use/need.

adamsutton commented 10 years ago

I think this is generally a good idea. Just need to think about it a bit.

Generally I think you're right that disabling a network implies the muxes are disabled. disabling a mux implies the service is disabled.

The question is what you do in the UI, do you hide disabled things generally (obviously an issue as you can't re-emable). Do you hide things whose parent is disabled, needs extra logic. Or do you have a flag in the grid to hide/show disabled elements?

clandmeter commented 10 years ago

This is all from a dvb-s perspective. When you have lots of sat configs, you will end up with a gazillion services which will drive every human insane. A mux is the parent of the services, so i guess in the ui when you disable a parent, you can hide the children. Of course if you disable a parent you do not hide it, as it would be impossible to find afterwards.

adamsutton commented 10 years ago

I'm thinking that I'll be a bit more generic, so also disabling a network would remove the muxes (and subsequently the services). But I'm thinking this might want to be in conjunction with some combo box to select the "hide" mechanism. I.e. don't hide anything, hide if parent disabled, hide if disabled (obviously that last one would be no good when you need to re-enable stuff etc..., but might be useful at other times). I think the default would be the hide if parent disabled.