Skip to content

Commit

Permalink
Release 5.11 New CSS Sections feature - enable/disable with checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonius7 committed Mar 15, 2023
1 parent bdc47df commit c3b48f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,20 +570,7 @@ def write_css_sections(sections, sections_filedata, sections_json):
f1.write(line)
modify = 0
else:
f1.write(line)

#if line.startswith(start_comment):
# pass
# if settings[setting]["value"] == "1" and setting in settings \
# and settings[setting]["state"] == "normal":
# modify = 1
# f1.write(LineParser.remove_start_comment(start_comment, line))
#else:
# pass
# if settings[setting]["value"] == "0":
# modify = 1
# f1.write(LineParser.add_start_comment(start_comment, line))

f1.write(line)
f.close()
f1.close()

Expand Down
2 changes: 1 addition & 1 deletion old_glory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ def __init__(self, parent, controller):
def section_click(self, controller, sectionname):
try:
controller.sections_config[sectionname] = str(self.checkvars[sectionname].get())
print(controller.sections_config)
#print(controller.sections_config)
except Exception as e:
print("Error setting section config :\n"\
"Section: " + sectionname, file=sys.stderr)
Expand Down

0 comments on commit c3b48f4

Please sign in to comment.