mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
temp: disable global search on engage
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user