This commit is contained in:
Alexander Drozdov
2022-04-25 00:55:35 +03:00
parent 588e0ce6b5
commit 29475048cf
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -185,7 +185,8 @@ function upgradeConfig (_config: Config): Config {
}
if (config.configVersion < 12) {
config.widgets.push({
const afterSettings = config.widgets.findIndex(w => w.wmType === 'settings')
config.widgets.splice(afterSettings + 1, 0, {
...defaultConfig().widgets.find(w => w.wmType === 'item-search')!,
wmWants: 'show',
wmId: Math.max(0, ...config.widgets.map(_ => _.wmId)) + 1
+1
View File
@@ -53,6 +53,7 @@ export async function createOverlayWindow () {
webSecurity: false,
allowRunningInsecureContent: false,
webviewTag: true,
spellcheck: false,
defaultFontSize: config.get('fontSize'),
preload: path.join(__dirname, 'preload.js')
}