Ensure i18n is initialized before setting about panel options

Co-authored-by: mifi <402547+mifi@users.noreply.github.com>
pull/2721/head
copilot-swe-agent[bot] 6 months ago
parent 139e1e437a
commit c81d00e75f

@ -32,7 +32,7 @@ import isStoreBuild from './isStoreBuild.js';
import { getAboutPanelOptions } from './aboutPanel.js';
import { checkNewVersion } from './updateChecker.js';
import * as i18nCommon from './i18nCommon.js';
import './i18n.js';
import i18nInit from './i18n.js';
import type { ApiActionRequest } from '../common/types.js';
import * as ffmpeg from './ffmpeg.js';
import * as compatPlayer from './compatPlayer.js';
@ -58,9 +58,6 @@ if (isWindows) {
app.setAppUserModelId(app.name);
}
// https://www.electronjs.org/docs/latest/api/app#appsetaboutpaneloptionsoptions
app.setAboutPanelOptions(getAboutPanelOptions());
let filesToOpen: string[] = [];
// Keep a global reference of the window object, if you don't, the window will
@ -246,6 +243,9 @@ const readyPromise = app.whenReady();
async function init() {
try {
logger.info('LosslessCut version', app.getVersion(), { isDev });
await i18nInit;
// https://www.electronjs.org/docs/latest/api/app#appsetaboutpaneloptionsoptions
app.setAboutPanelOptions(getAboutPanelOptions());
await configStore.init({ customConfigDir: argv['configDir'] });
logger.info('Initialized config store');

Loading…
Cancel
Save