From 10b665253d4124a89c9b10890d0caefb0a50de0e Mon Sep 17 00:00:00 2001 From: Oliver Schwendener Date: Wed, 11 Dec 2024 09:15:01 +0100 Subject: [PATCH] refactor: rename main to search --- src/main/Core/BrowserWindow/BrowserWindowModule.ts | 6 +++--- src/renderer/{main.html => search.html} | 2 +- src/renderer/{main.tsx => search.tsx} | 0 vite.config.mts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename src/renderer/{main.html => search.html} (94%) rename src/renderer/{main.tsx => search.tsx} (100%) diff --git a/src/main/Core/BrowserWindow/BrowserWindowModule.ts b/src/main/Core/BrowserWindow/BrowserWindowModule.ts index 1bf663695..12ce2d672 100644 --- a/src/main/Core/BrowserWindow/BrowserWindowModule.ts +++ b/src/main/Core/BrowserWindow/BrowserWindowModule.ts @@ -5,7 +5,7 @@ import type { EventSubscriber } from "@Core/EventSubscriber"; import type { SettingsManager } from "@Core/SettingsManager"; import type { UeliCommand, UeliCommandInvokedEvent } from "@Core/UeliCommand"; import type { OperatingSystem, SearchResultItemAction } from "@common/Core"; -import type { BrowserWindow, IpcMain } from "electron"; +import { BrowserWindow, type IpcMain } from "electron"; import { join } from "path"; import { NavigateToActionHandler } from "./ActionHandler"; import { AppIconFilePathResolver } from "./AppIconFilePathResolver"; @@ -92,11 +92,11 @@ export class BrowserWindowModule { await BrowserWindowModule.loadFileOrUrl( browserWindow, dependencyRegistry.get("EnvironmentVariableProvider"), - "main.html", + "search.html", ); const settingsWindow = new BrowserWindow({ - show: false, + show: true, }); await BrowserWindowModule.loadFileOrUrl( diff --git a/src/renderer/main.html b/src/renderer/search.html similarity index 94% rename from src/renderer/main.html rename to src/renderer/search.html index 9e7cd5e69..5bb84d359 100644 --- a/src/renderer/main.html +++ b/src/renderer/search.html @@ -32,6 +32,6 @@
- + diff --git a/src/renderer/main.tsx b/src/renderer/search.tsx similarity index 100% rename from src/renderer/main.tsx rename to src/renderer/search.tsx diff --git a/vite.config.mts b/vite.config.mts index 741376624..1c4ace9eb 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -30,7 +30,7 @@ export default defineConfig(({ command }) => { build: { rollupOptions: { input: { - main: join(rendererRoot, "main.html"), + search: join(rendererRoot, "search.html"), settings: join(rendererRoot, "settings.html"), }, },