Просмотр исходного кода

chore: fix add_shortcut conditions

Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
version-14
Khimendrapal Solanki 3 лет назад
committed by GitHub
Родитель
Сommit
34aa1f97b8
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
1 измененных файлов: 2 добавлений и 4 удалений
  1. +2
    -4
      frappe/public/js/frappe/desk.js

+ 2
- 4
frappe/public/js/frappe/desk.js Просмотреть файл

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


Загрузка…
Отмена
Сохранить