fix: don't add navbar items if theyre already present
* fix: don't set installed_apps global value in after_install hook
This commit is contained in:
parent
ef99b57a08
commit
5b4fb3f2cf
1 changed files with 4 additions and 3 deletions
|
|
@ -18,9 +18,6 @@ def before_install():
|
|||
|
||||
|
||||
def after_install():
|
||||
# reset installed apps for re-install
|
||||
frappe.db.set_global("installed_apps", '["frappe"]')
|
||||
|
||||
create_user_type()
|
||||
install_basic_docs()
|
||||
|
||||
|
|
@ -242,6 +239,10 @@ def add_country_and_currency(name, country):
|
|||
def add_standard_navbar_items():
|
||||
navbar_settings = frappe.get_single("Navbar Settings")
|
||||
|
||||
# don't add settings/help options if they're already present
|
||||
if navbar_settings.settings_dropdown and navbar_settings.help_dropdown:
|
||||
return
|
||||
|
||||
standard_navbar_items = [
|
||||
{
|
||||
"item_label": "My Profile",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue