temp: disable global search on engage

This commit is contained in:
2026-05-24 17:14:06 +09:30
parent 475b865000
commit fee79e8623
+14 -1
View File
@@ -5,6 +5,7 @@ import {
defineSettings, defineSettings,
hotkeySetting, hotkeySetting,
} from "../../core/settingsHelpers"; } from "../../core/settingsHelpers";
import { isSeqtaEngageExperience } from "@/seqta/utils/isSeqtaEngage";
import styles from "./src/core/styles.css?inline"; import styles from "./src/core/styles.css?inline";
// Platform-aware default hotkey // Platform-aware default hotkey
@@ -112,7 +113,7 @@ const settings = defineSettings({
}); });
// Create the lazy plugin definition - this loads immediately but doesn't import heavy dependencies // Create the lazy plugin definition - this loads immediately but doesn't import heavy dependencies
export default defineLazyPlugin({ const globalSearchPlugin = defineLazyPlugin({
id: "global-search", id: "global-search",
name: "Global Search", name: "Global Search",
description: "Quick search for everything in SEQTA", description: "Quick search for everything in SEQTA",
@@ -125,3 +126,15 @@ export default defineLazyPlugin({
// Lazy loader - only imports the heavy plugin when actually needed // Lazy loader - only imports the heavy plugin when actually needed
loader: () => import("./src/core/index") loader: () => import("./src/core/index")
}); });
const runGlobalSearch = globalSearchPlugin.run!;
globalSearchPlugin.run = async (api) => {
if (isSeqtaEngageExperience()) {
return () => {};
}
return runGlobalSearch(api);
};
export default globalSearchPlugin;