feat: add deep link theme import functionality

This commit is contained in:
Hachi-R 2025-02-16 01:27:15 -03:00
parent 39ceb8ee6e
commit d7d88ecb8c
8 changed files with 174 additions and 35 deletions

View file

@ -10,7 +10,6 @@ import { PythonRPC } from "./services/python-rpc";
import { Aria2 } from "./services/aria2";
import { db, levelKeys } from "./level";
import { loadState } from "./main";
import { handleDeepLinkTheme } from "./events/themes/deeplink";
const { autoUpdater } = updater;
@ -93,7 +92,7 @@ const handleDeepLinkPath = (uri?: string) => {
const authorCode = url.searchParams.get("author");
if (themeName && authorCode) {
handleDeepLinkTheme(themeName, authorCode);
WindowManager.mainWindow?.webContents.send("import-theme", themeName, authorCode);
}
}
} catch (error) {