Fix import errors

This commit is contained in:
Manav Rathi 2024-03-27 17:21:23 +05:30
parent 8ffe1ece2d
commit 937e09f6a3
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

View file

@ -20,7 +20,7 @@ import {
handleDownloads, handleDownloads,
handleExternalLinks, handleExternalLinks,
handleUpdates, handleUpdates,
logSystemInfo, logStartupBanner,
setupMacWindowOnDockIconClick, setupMacWindowOnDockIconClick,
setupMainMenu, setupMainMenu,
setupTrayItem, setupTrayItem,
@ -162,7 +162,7 @@ const main = () => {
// //
// Note that some Electron APIs can only be used after this event occurs. // Note that some Electron APIs can only be used after this event occurs.
app.on("ready", async () => { app.on("ready", async () => {
logSystemInfo(); logStartupBanner();
mainWindow = await createWindow(); mainWindow = await createWindow();
const watcher = initWatcher(mainWindow); const watcher = initWatcher(mainWindow);
setupTrayItem(mainWindow); setupTrayItem(mainWindow);

View file

@ -5,9 +5,9 @@ import fs from "node:fs/promises";
import path from "path"; import path from "path";
import util from "util"; import util from "util";
import { CustomErrors } from "../constants/errors"; import { CustomErrors } from "../constants/errors";
import { isDev } from "../main";
import { writeStream } from "../main/fs"; import { writeStream } from "../main/fs";
import { logError, logErrorSentry } from "../main/log"; import { logError, logErrorSentry } from "../main/log";
import { isDev } from "../main/util";
import { ElectronFile } from "../types/ipc"; import { ElectronFile } from "../types/ipc";
import { isPlatform } from "../utils/common/platform"; import { isPlatform } from "../utils/common/platform";
import { generateTempFilePath } from "../utils/temp"; import { generateTempFilePath } from "../utils/temp";

View file

@ -6,7 +6,8 @@ import {
shell, shell,
} from "electron"; } from "electron";
import ElectronLog from "electron-log"; import ElectronLog from "electron-log";
import { openDirectory, openLogDirectory, setIsAppQuitting } from "../main"; import { setIsAppQuitting } from "../main";
import { openDirectory, openLogDirectory } from "../main/util";
import { forceCheckForUpdateAndNotify } from "../services/appUpdater"; import { forceCheckForUpdateAndNotify } from "../services/appUpdater";
import autoLauncher from "../services/autoLauncher"; import autoLauncher from "../services/autoLauncher";
import { import {