Bläddra i källkod

chore: fix add_shortcut conditions

Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
version-14
Khimendrapal Solanki 3 år sedan
committed by GitHub
förälder
incheckning
34aa1f97b8
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. +2
    -4
      frappe/public/js/frappe/desk.js

+ 2
- 4
frappe/public/js/frappe/desk.js Visa fil

@@ -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();
}
}


Laddar…
Avbryt
Spara