diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..cea4d3f --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "windows-gcc-x64", + "includePath": [ + "${workspaceFolder}/**" + ], + "compilerPath": "gcc", + "cStandard": "${default}", + "cppStandard": "${default}", + "intelliSenseMode": "windows-gcc-x64", + "compilerArgs": [ + "" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 3d01d65..a7c72bf 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,4 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "compounds": [ { @@ -45,9 +42,27 @@ "/**", "${workspaceRoot}/node_modules/**", "${workspaceRoot}/dist-electron/**", - // Skip files in host(VITE_DEV_SERVER_URL) "http://127.0.0.1:3344/**" ] }, + { + "name": "C/C++ Runner: Debug Session", + "type": "cppdbg", + "request": "launch", + "args": [], + "stopAtEntry": false, + "externalConsole": true, + "cwd": "d:/GITHUB-DAWN-LAUNCHER/DawnLauncher", + "program": "d:/GITHUB-DAWN-LAUNCHER/DawnLauncher/build/Debug/outDebug", + "MIMode": "gdb", + "miDebuggerPath": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } ] -} +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 1e3e2cd..98241bc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,5 +9,62 @@ ], "url": "https://json.schemastore.org/electron-builder" } - ] -} + ], + "C_Cpp_Runner.msvcBatchPath": "", + "C_Cpp_Runner.cCompilerPath": "gcc", + "C_Cpp_Runner.cppCompilerPath": "g++", + "C_Cpp_Runner.debuggerPath": "gdb", + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "", + "C_Cpp_Runner.useMsvc": false, + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic", + "-Wshadow", + "-Wformat=2", + "-Wcast-align", + "-Wconversion", + "-Wsign-conversion", + "-Wnull-dereference" + ], + "C_Cpp_Runner.msvcWarnings": [ + "/W4", + "/permissive-", + "/w14242", + "/w14287", + "/w14296", + "/w14311", + "/w14826", + "/w44062", + "/w44242", + "/w14905", + "/w14906", + "/w14263", + "/w44265", + "/w14928" + ], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false, + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.includeSearch": [ + "*", + "**/*" + ], + "C_Cpp_Runner.excludeSearch": [ + "**/build", + "**/build/**", + "**/.*", + "**/.*/**", + "**/.vscode", + "**/.vscode/**" + ], + "C_Cpp_Runner.useAddressSanitizer": false, + "C_Cpp_Runner.useUndefinedSanitizer": false, + "C_Cpp_Runner.useLeakSanitizer": false, + "C_Cpp_Runner.showCompilationTime": false, + "C_Cpp_Runner.useLinkTimeOptimization": false, + "C_Cpp_Runner.msvcSecureNoWarnings": false +} \ No newline at end of file diff --git a/electron/main/main/index.ts b/electron/main/main/index.ts index d420d39..9451e0f 100644 --- a/electron/main/main/index.ts +++ b/electron/main/main/index.ts @@ -44,6 +44,7 @@ function createMainWindow() { icon: join(process.env.VITE_PUBLIC, "logo.ico"), webPreferences: { spellcheck: false, + backgroundThrottling: false, preload: join(__dirname, "../preload/index.js"), devTools: process.env.NODE_ENV === "development", }, diff --git a/electron/main/search/index.ts b/electron/main/search/index.ts index 270c9be..79cb52b 100644 --- a/electron/main/search/index.ts +++ b/electron/main/search/index.ts @@ -27,6 +27,7 @@ function createQuickSearchWindow() { backgroundColor: getMainBackgorunColor(), webPreferences: { spellcheck: false, + backgroundThrottling: false, preload: join(__dirname, "../preload/index.js"), devTools: process.env.NODE_ENV === "development", }, diff --git a/src/pages/index/Index.vue b/src/pages/index/Index.vue index 2d09156..7774df9 100644 --- a/src/pages/index/Index.vue +++ b/src/pages/index/Index.vue @@ -551,8 +551,10 @@ onMounted(() => { } // 刷新DOM完毕执行 nextTick(() => { - // 显示窗口 - window.main.showWindow(data.blurHide); + setTimeout(() => { + // 显示窗口 + window.main.showWindow(data.blurHide); + }, 10); }); }) ); diff --git a/src/pages/search/QuickSearch.vue b/src/pages/search/QuickSearch.vue index 136e0e8..aa8712d 100644 --- a/src/pages/search/QuickSearch.vue +++ b/src/pages/search/QuickSearch.vue @@ -592,8 +592,10 @@ onMounted(() => { searchInput.value.focus(); // 刷新DOM完毕执行 nextTick(() => { - // 显示窗口 - window.quickSearch.showWindow(); + setTimeout(() => { + // 显示窗口 + window.quickSearch.showWindow(); + }, 10); }); }) );