fix: show correct icon style
This commit is contained in:
parent
02ecb10205
commit
d4dbb58dca
1 changed files with 8 additions and 1 deletions
|
|
@ -124,10 +124,17 @@ def get_bootinfo():
|
|||
|
||||
bootinfo.setup_wizard_completed_apps = get_setup_wizard_completed_apps() or []
|
||||
bootinfo.desktop_icon_urls = get_desktop_icon_urls()
|
||||
bootinfo.desktop_icon_style = frappe.db.get_single_value("Desktop Settings", "icon_style") or "Subtle"
|
||||
bootinfo.desktop_icon_style = get_icon_style() or "Subtle"
|
||||
return bootinfo
|
||||
|
||||
|
||||
def get_icon_style():
|
||||
icon_style = frappe.db.get_single_value("Desktop Settings", "icon_style")
|
||||
if icon_style not in ["Subtle", "Solid"]:
|
||||
return "Solid"
|
||||
return icon_style
|
||||
|
||||
|
||||
def get_letter_heads():
|
||||
letter_heads = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue