Jump to content


Photo

Menu page "Customize" always pops Question on Cancel


  • Please log in to reply
39 replies to this topic

Re: Menu page "Customize" always pops Question on Cancel #21 littlesat

  • PLi® Core member
  • 57,467 posts

+708
Excellent

Posted 10 December 2024 - 08:38

FYI https://github.com/O...b62d3cf9923eb3f (resolved... but you might get it still just once due the so called chicken/egg syndrome).

https://github.com/O...c8271fbfa4f0b86


Edited by littlesat, 10 December 2024 - 08:44.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Menu page "Customize" always pops Question on Cancel #22 Stan

  • Senior Member
  • 481 posts

+5
Neutral

Posted 10 December 2024 - 08:48

I would choose the other way to fix it:

	config.usage.setupShowDefault = ConfigSelection(default="", choices=[
		("", _("Don't show default")),

Because this is the way it's done with ALL settings. (when a value is the default, there's no need to save it in the settings file)


Edited by Stan, 10 December 2024 - 08:52.


Re: Menu page "Customize" always pops Question on Cancel #23 Stan

  • Senior Member
  • 481 posts

+5
Neutral

Posted 10 December 2024 - 09:06

And in addition, it's compatible with the current settings or backups. It will work right away - no need to change and save once.



Re: Menu page "Customize" always pops Question on Cancel #24 Dimitrij

  • PLi® Core member
  • 10,380 posts

+354
Excellent

Posted 10 December 2024 - 09:12

I advise you never to use an empty value.

It can cause potential problems.

 

Empty value example:

config.usage.show_second_infobar = ConfigSelection(default="0", choices=[("", _("None"))] + choicelist + [("EPG", _("EPG"))])

https://github.com/O...geConfig.py#L87


Edited by Dimitrij, 10 December 2024 - 09:15.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Menu page "Customize" always pops Question on Cancel #25 Stan

  • Senior Member
  • 481 posts

+5
Neutral

Posted 10 December 2024 - 09:24

Thanks Dimitrij for clarification. And thanks littlesat for the fix.



Re: Menu page "Customize" always pops Question on Cancel #26 Dimitrij

  • PLi® Core member
  • 10,380 posts

+354
Excellent

Posted 10 December 2024 - 09:24

	audio_language_choices = [
		("", _("None")),

But here it is a default.


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Menu page "Customize" always pops Question on Cancel #27 Stan

  • Senior Member
  • 481 posts

+5
Neutral

Posted 10 December 2024 - 09:28

And does it cause problems?



Re: Menu page "Customize" always pops Question on Cancel #28 littlesat

  • PLi® Core member
  • 57,467 posts

+708
Excellent

Posted 10 December 2024 - 09:29

FYI

 

https://github.com/O...7b322684584f0c0


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Menu page "Customize" always pops Question on Cancel #29 littlesat

  • PLi® Core member
  • 57,467 posts

+708
Excellent

Posted 10 December 2024 - 09:30

When it is the default it indeed seems not to cause issues....

 

Maybe we could 'better' search for a solution in config....


Edited by littlesat, 10 December 2024 - 09:37.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Menu page "Customize" always pops Question on Cancel #30 Stan

  • Senior Member
  • 481 posts

+5
Neutral

Posted 10 December 2024 - 09:33

I'd suggest, not to change it then. It will create a mess in terms of compatibility and continuity.

 

And better implement the fix from #22 and move on. ;)


Edited by Stan, 10 December 2024 - 09:42.


Re: Menu page "Customize" always pops Question on Cancel #31 ims

  • PLi® Core member
  • 13,949 posts

+215
Excellent

Posted 10 December 2024 - 09:49

Using

config.usage.setupShowDefault = ConfigSelection(default="", choices=[
		("", _("Don't show default")),

should not be problematic. Problematic is only with loading from settings.


Kdo nic nedělá, nic nezkazí!

Re: Menu page "Customize" always pops Question on Cancel #32 Dimitrij

  • PLi® Core member
  • 10,380 posts

+354
Excellent

Posted 10 December 2024 - 09:52

maybe need

and config.usage.show_second_infobar.value not in ("no", "EPG")


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Menu page "Customize" always pops Question on Cancel #33 Stan

  • Senior Member
  • 481 posts

+5
Neutral

Posted 10 December 2024 - 10:01

Using

config.usage.setupShowDefault = ConfigSelection(default="", choices=[
		("", _("Don't show default")),

should not be problematic. Problematic is only with loading from settings.

 

Why woult it be problematic? If it's the default, it is not stored in settings,right?


Edited by Stan, 10 December 2024 - 10:05.


Re: Menu page "Customize" always pops Question on Cancel #34 ims

  • PLi® Core member
  • 13,949 posts

+215
Excellent

Posted 10 December 2024 - 10:09

 

Using

config.usage.setupShowDefault = ConfigSelection(default="", choices=[
		("", _("Don't show default")),

should not be problematic. Problematic is only with loading from settings.

 

Why woult it be problematic? If it's the default, it is not stored in settings,right?

 

I meant the subsequent comparison when you go to Customize.


Kdo nic nedělá, nic nezkazí!

Re: Menu page "Customize" always pops Question on Cancel #35 Stan

  • Senior Member
  • 481 posts

+5
Neutral

Posted 10 December 2024 - 10:50

@littlesat

After the elaboration, I think it's better stick to the Enigma conventions.

Could you please revert the commits and go with:

config.usage.setupShowDefault = ConfigSelection(default="", choices=[

and

config.usage.show_second_infobar = ConfigSelection(default="", choices=[("", _("None"))] + choicelist + [("EPG", _("EPG"))])

instead.

 

Thanks


Edited by Stan, 10 December 2024 - 10:58.


Re: Menu page "Customize" always pops Question on Cancel #36 Stan

  • Senior Member
  • 481 posts

+5
Neutral

Posted 10 December 2024 - 12:07

... or alternatively correct the commit:

	config.usage.show_second_infobar = ConfigSelection(default="no", choices=[("no", _("None"))] + choicelist + [("EPG", _("EPG"))])

Thanks

 



Re: Menu page "Customize" always pops Question on Cancel #37 Stan

  • Senior Member
  • 481 posts

+5
Neutral

Posted 10 December 2024 - 12:28

Sorry, forget what I posted above... mixed something up... :wacko:



Re: Menu page "Customize" always pops Question on Cancel #38 littlesat

  • PLi® Core member
  • 57,467 posts

+708
Excellent

Posted 10 December 2024 - 14:58

EPG is fetched in the if earlier but with an extra isStandardInfoBar check.... when this was wrong somehow it was wrong for a longer time.....

 


and config.usage.show_second_infobar.value not in ("no", "EPG")


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Menu page "Customize" always pops Question on Cancel #39 Abu Baniaz

  • PLi® Contributor
  • 2,528 posts

+64
Good

Posted 10 December 2024 - 15:23

And does it cause problems?

Yes it does. See the language thread.



Re: Menu page "Customize" always pops Question on Cancel #40 littlesat

  • PLi® Core member
  • 57,467 posts

+708
Excellent

Posted 10 December 2024 - 15:59

What language thread?

 

If so then it was in there for a long time....


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users