From c100bfed8d292ac295443207a15f2e6947d48943 Mon Sep 17 00:00:00 2001 From: jcfun Date: Thu, 3 Oct 2024 12:28:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=F0=9F=90=9B:=20=E4=BF=AE=E5=A4=8D=E4=BA=86l?= =?UTF-8?q?inux6.1=E5=86=85=E6=A0=B8=E4=B8=8B=E7=A1=AC=E4=BB=B6=E5=8A=A0?= =?UTF-8?q?=E9=80=9F=E8=A2=AB=E9=94=99=E8=AF=AF=E5=85=B3=E9=97=AD=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 4 ++-- electron/main/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components.d.ts b/components.d.ts index 73159256..2c8306a1 100644 --- a/components.d.ts +++ b/components.d.ts @@ -23,8 +23,8 @@ declare module 'vue' { KeyboardSetting: typeof import('./src/components/Setting/KeyboardSetting.vue')['default'] LocalSetting: typeof import('./src/components/Setting/LocalSetting.vue')['default'] Login: typeof import('./src/components/Modal/Login.vue')['default'] - LoginPhone: typeof import('./src/components/Modal/loginPhone.vue')['default'] - LoginQRCode: typeof import('./src/components/Modal/loginQRCode.vue')['default'] + LoginPhone: typeof import('./src/components/Modal/LoginPhone.vue')['default'] + LoginQRCode: typeof import('./src/components/Modal/LoginQRCode.vue')['default'] LyricsSetting: typeof import('./src/components/Setting/LyricsSetting.vue')['default'] MainAMLyric: typeof import('./src/components/Player/MainAMLyric.vue')['default'] MainLyric: typeof import('./src/components/Player/MainLyric.vue')['default'] diff --git a/electron/main/index.ts b/electron/main/index.ts index 86d6b8ca..6564918e 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -1,7 +1,7 @@ import { app, shell, BrowserWindow, BrowserWindowConstructorOptions } from "electron"; import { electronApp, optimizer } from "@electron-toolkit/utils"; import { join } from "path"; -import { release } from "os"; +import { release, type } from "os"; import { isDev, isMac, appName } from "./utils"; import { registerAllShortcuts, unregisterShortcuts } from "./shortcut"; import { initTray, MainTray } from "./tray"; @@ -38,7 +38,7 @@ class MainProcess { constructor() { log.info("πŸš€ Main process startup"); // 禁用 Windows 7 ηš„ GPU εŠ ι€ŸεŠŸθƒ½ - if (release().startsWith("6.1")) app.disableHardwareAcceleration(); + if (release().startsWith("6.1") && type() == 'Windows_NT') app.disableHardwareAcceleration(); // 单例锁 if (!app.requestSingleInstanceLock()) { log.error("❌ There is already a program running and this process is terminated");