@@ -4,6 +4,7 @@ import { app, dialog, BrowserWindow, screen, shell } from 'electron';
44import type { Event } from 'electron' ;
55import { client } from 'electron-connect' ;
66import EventEmitter from 'events' ;
7+ import { WalletSettingsStateEnum } from '../common/ipc/api' ;
78import { requestElectronStore } from './ipc/electronStoreConversation' ;
89import { logger } from './utils/logging' ;
910import {
@@ -43,7 +44,6 @@ import type {
4344import { logUsedVersion } from './utils/logUsedVersion' ;
4445import { setStateSnapshotLogChannel } from './ipc/set-log-state-snapshot' ;
4546import { generateWalletMigrationReportChannel } from './ipc/generateWalletMigrationReportChannel' ;
46- import { enableApplicationMenuNavigationChannel } from './ipc/enableApplicationMenuNavigationChannel' ;
4747import { pauseActiveDownloads } from './ipc/downloadManagerChannel' ;
4848import {
4949 restoreSavedWindowBounds ,
@@ -198,28 +198,20 @@ const onAppReady = async () => {
198198 // @ts -ignore ts-migrate(2345) FIXME: Argument of type 'unknown' is not assignable to pa... Remove this comment to see the full error message
199199 buildAppMenus ( mainWindow , cardanoNode , userLocale , {
200200 isNavigationEnabled : false ,
201+ walletSettingsState : WalletSettingsStateEnum . hidden ,
201202 } ) ;
202- enableApplicationMenuNavigationChannel . onReceive (
203- ( ) =>
204- new Promise ( ( resolve ) => {
205- const locale = getLocale ( network ) ;
206- // @ts -ignore ts-migrate(2345) FIXME: Argument of type 'unknown' is not assignable to pa... Remove this comment to see the full error message
207- buildAppMenus ( mainWindow , cardanoNode , locale , {
208- isNavigationEnabled : true ,
209- } ) ;
210- resolve ( ) ;
211- } )
212- ) ;
213203 rebuildApplicationMenu . onReceive (
214- ( data ) =>
204+ ( { walletSettingsState , isNavigationEnabled } ) =>
215205 new Promise ( ( resolve ) => {
216206 const locale = getLocale ( network ) ;
217207 // @ts -ignore ts-migrate(2345) FIXME: Argument of type 'unknown' is not assignable to pa... Remove this comment to see the full error message
218208 buildAppMenus ( mainWindow , cardanoNode , locale , {
219- isNavigationEnabled : data . isNavigationEnabled ,
209+ isNavigationEnabled,
210+ walletSettingsState,
220211 } ) ;
221212 // @ts -ignore ts-migrate(2339) FIXME: Property 'updateTitle' does not exist on type 'Bro... Remove this comment to see the full error message
222213 mainWindow . updateTitle ( locale ) ;
214+ // @ts -ignore ts-migrate(2794) FIXME: Expected 1 arguments, but got 0. Did you forget to... Remove this comment to see the full error message
223215 resolve ( ) ;
224216 } )
225217 ) ;
0 commit comments