refactor: extract shortcut ui runtime deps

This commit is contained in:
2026-02-10 01:36:27 -08:00
parent ca8d9cbb97
commit b3a9a05a44
6 changed files with 246 additions and 28 deletions

View File

@@ -1,10 +1,14 @@
import { BrowserWindow, Extension, session } from "electron";
export function openYomitanSettingsWindow(options: {
export interface OpenYomitanSettingsWindowOptions {
yomitanExt: Extension | null;
getExistingWindow: () => BrowserWindow | null;
setWindow: (window: BrowserWindow | null) => void;
}): void {
}
export function openYomitanSettingsWindow(
options: OpenYomitanSettingsWindowOptions,
): void {
console.log("openYomitanSettings called");
if (!options.yomitanExt) {