瀏覽代碼

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
沒有發現已知的金鑰在資料庫的簽署中 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();
}
}


Loading…
取消
儲存