소스 검색

chore: fix add_shortcut conditions

Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
version-14
Khimendrapal Solanki 3 년 전
committed by GitHub
부모
커밋
34aa1f97b8
No known key found for this signature in database GPG 키 ID: 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();
}
}


불러오는 중...
취소
저장