fix(stage-tamagotchi): openDevtoolsWindow in settings not working due to missing windowAuthManager from injeca

This commit is contained in:
Makito
2026-04-03 03:36:49 +09:00
parent 89432c484b
commit b85808c0af
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ app.whenReady().then(async () => {
})
const settingsWindow = injeca.provide('windows:settings', {
dependsOn: { widgetsManager, beatSync, autoUpdater, devtoolsMarkdownStressWindow, serverChannel, mcpStdioManager, i18n },
dependsOn: { widgetsManager, beatSync, autoUpdater, devtoolsMarkdownStressWindow, serverChannel, mcpStdioManager, i18n, windowAuthManager },
build: async ({ dependsOn }) => setupSettingsWindowReusableFunc(dependsOn),
})
@@ -1,4 +1,5 @@
import type { I18n } from '../../libs/i18n'
import type { WindowAuthManager } from '../../services/airi/auth'
import type { ServerChannel } from '../../services/airi/channel-server'
import type { McpStdioManager } from '../../services/airi/mcp-servers'
import type { AutoUpdater } from '../../services/electron/auto-updater'
@@ -31,6 +32,7 @@ export function setupSettingsWindowReusableFunc(params: {
serverChannel: ServerChannel
mcpStdioManager: McpStdioManager
i18n: I18n
windowAuthManager: WindowAuthManager
}): SettingsWindowManager {
const rendererBase = baseUrl(resolve(getElectronMainDirname(), '..', 'renderer'))
const defaultRoute = '/settings'
@@ -69,6 +71,7 @@ export function setupSettingsWindowReusableFunc(params: {
serverChannel: params.serverChannel,
mcpStdioManager: params.mcpStdioManager,
i18n: params.i18n,
windowAuthManager: params.windowAuthManager,
})
window.on('closed', () => {