Explorar el Código

chore: fix add_shortcut conditions

Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
version-14
Khimendrapal Solanki hace 3 años
committed by GitHub
padre
commit
34aa1f97b8
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. +2
    -4
      frappe/public/js/frappe/desk.js

+ 2
- 4
frappe/public/js/frappe/desk.js Ver fichero

@@ -59,12 +59,10 @@ frappe.Application = class Application {
shortcut: 'shift+ctrl+g',
description: __('Switch Theme'),
action: () => {
if (cur_dialog) {
if (frappe.theme_switcher && frappe.theme_switcher.dialog.is_visible) {
frappe.theme_switcher.hide();
} else {
if (!frappe.theme_switcher) {
frappe.theme_switcher = new frappe.ui.ThemeSwitcher();
}
frappe.theme_switcher = new frappe.ui.ThemeSwitcher();
frappe.theme_switcher.show();
}
}


Cargando…
Cancelar
Guardar