Remove timeout, Remove backgroundThrottling.

This commit is contained in:
unknown 2023-11-19 21:21:45 +08:00
parent 1d1edb95e7
commit 82f5fe8cfe
4 changed files with 4 additions and 10 deletions

View File

@ -44,7 +44,6 @@ function createMainWindow() {
icon: join(process.env.VITE_PUBLIC, "logo.ico"), icon: join(process.env.VITE_PUBLIC, "logo.ico"),
webPreferences: { webPreferences: {
spellcheck: false, spellcheck: false,
backgroundThrottling: false,
preload: join(__dirname, "../preload/index.js"), preload: join(__dirname, "../preload/index.js"),
devTools: process.env.NODE_ENV === "development", devTools: process.env.NODE_ENV === "development",
}, },

View File

@ -27,7 +27,6 @@ function createQuickSearchWindow() {
backgroundColor: getMainBackgorunColor(), backgroundColor: getMainBackgorunColor(),
webPreferences: { webPreferences: {
spellcheck: false, spellcheck: false,
backgroundThrottling: false,
preload: join(__dirname, "../preload/index.js"), preload: join(__dirname, "../preload/index.js"),
devTools: process.env.NODE_ENV === "development", devTools: process.env.NODE_ENV === "development",
}, },

View File

@ -551,10 +551,8 @@ onMounted(() => {
} }
// DOM // DOM
nextTick(() => { nextTick(() => {
setTimeout(() => { //
// window.main.showWindow(data.blurHide);
window.main.showWindow(data.blurHide);
}, 10);
}); });
}) })
); );

View File

@ -592,10 +592,8 @@ onMounted(() => {
searchInput.value.focus(); searchInput.value.focus();
// DOM // DOM
nextTick(() => { nextTick(() => {
setTimeout(() => { //
// window.quickSearch.showWindow();
window.quickSearch.showWindow();
}, 10);
}); });
}) })
); );