fix(stage-tamagotchi): openDevtoolsWindow in settings not working due to missing windowAuthManager from injeca
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user