支持系统菜单功能

This commit is contained in:
muwoo
2021-12-10 16:47:33 +08:00
parent c9d6b04a7d
commit 6ee0b2a795
8 changed files with 99 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ import path from "path";
import fs from "fs";
import getLocalDataFile from "./getLocalDataFile";
import { app } from "electron";
import commonConst from "./commonConst";
const configPath = path.join(getLocalDataFile(), "./rubick-config.json");
@@ -17,7 +18,7 @@ const defaultConfigForAnyPlatform = {
start: true,
space: true,
// 是否失焦隐藏。默认在dev环境不隐藏在打包后隐藏。
hideOnBlur: app.isPackaged,
hideOnBlur: commonConst.production(),
},
local: {
search: true,