Fixed the menu working when using the Play all option

This commit is contained in:
Sergio Costas 2016-02-01 23:36:08 +01:00
parent 5a6853a764
commit d977cfb2ef
3 changed files with 10 additions and 5 deletions

View file

@ -1,4 +1,7 @@
## History of versions ## ## History of versions ##
* version 4.5.0 (2016-01-02)
* Reduced the height of the MENU window
* Now the menu works fine when enabling the "Play all" option
* version 4.4.0 (2015-11-07) * version 4.4.0 (2015-11-07)
* Removed MPlayer as an option for getting movie information * Removed MPlayer as an option for getting movie information

View file

@ -64,7 +64,7 @@ except:
setup( setup(
name='devedeng', name='devedeng',
version='4.4.0', version='4.5.0',
description='A video DVD creator', description='A video DVD creator',
long_description = "A program that allows to create video DVDs", long_description = "A program that allows to create video DVDs",

View file

@ -213,13 +213,15 @@ class dvdauthor_converter(devedeng.executor.executor):
for nbutton in menu_page["chapters"]: for nbutton in menu_page["chapters"]:
#xml_file.write('\t\t\t\t<button name="'+nbutton+'"> g0='+str(title_list[button_counter])+'; jump vmgm menu; </button>\n') #xml_file.write('\t\t\t\t<button name="'+nbutton+'"> g0='+str(title_list[button_counter])+'; jump vmgm menu; </button>\n')
xml_file.write('\t\t\t\t<button name="'+nbutton+'">\n') xml_file.write('\t\t\t\t<button name="'+nbutton+'">\n')
xml_file.write('\t\t\t\t\tg0='+str(title_list[button_counter])+';\n')
if play_all_opt and nbutton == "boton0x0": if play_all_opt and nbutton == "boton0x0":
xml_file.write('\t\t\t\t\tg3=1;\n') xml_file.write('\t\t\t\t\tg3=1;\n')
xml_file.write('\t\t\t\t\tjump vmgm menu;\n') xml_file.write('\t\t\t\t\tg0=1;\n')
xml_file.write('\t\t\t\t</button>\n') xml_file.write('\t\t\t\t\tjump vmgm menu;\n')
if not play_all_opt: else:
xml_file.write('\t\t\t\t\tg0='+str(title_list[button_counter])+';\n')
xml_file.write('\t\t\t\t\tjump vmgm menu;\n')
button_counter+=1 button_counter+=1
xml_file.write('\t\t\t\t</button>\n')
if (menu_page["left"] != None): if (menu_page["left"] != None):
xml_file.write('\t\t\t\t<button name="'+menu_page["left"]+'"> g1=') xml_file.write('\t\t\t\t<button name="'+menu_page["left"]+'"> g1=')