Skip to content

Commit

Permalink
chore: only enable rencent-file-manager in devEnvironment
Browse files Browse the repository at this point in the history
  • Loading branch information
yan42685 committed Oct 27, 2024
1 parent 1a48f68 commit 7c90d2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Clever Search",
"author": "Alex Clifton",
"description": "Helping you quickly locate the notes in your mind in the easiest way, without the need for complex search syntax to find relevant content.",
"version": "0.2.13",
"version": "0.2.14",
"minAppVersion": "0.15.0",
"fundingUrl": "https://www.buymeacoffee.com/alexclifton",
"isDesktopOnly": true
Expand Down
8 changes: 6 additions & 2 deletions src/services/obsidian/plugin-manager.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ChinesePatch } from "src/integrations/languages/chinese-patch";
import { OmnisearchIntegration } from "src/integrations/omnisearch";
import { FloatingWindowManager } from "src/ui/floating-window";
import { logger } from "src/utils/logger";
import { AssetsProvider } from "src/utils/web/assets-provider";
import { SearchClient } from "src/web-workers/client";
import { singleton } from "tsyringe";
import { getInstance } from "../../utils/my-lib";
import { getInstance, isDevEnvironment } from "../../utils/my-lib";
import { AuxiliaryService } from "../auxiliary/auxiliary-service";
import { CommandRegistry } from "./command-registry";
import { SettingManager } from "./setting-manager";
Expand All @@ -19,7 +20,10 @@ export class PluginManager {
async onload() {
await getInstance(SettingManager).initAsync();
getInstance(ViewRegistry).init();
getInstance(RecentFileManager).init();
if (isDevEnvironment) {
logger.warn("仅在开发模式开启RecentFileManager")
getInstance(RecentFileManager).init();
}

getInstance(CommandRegistry).addCommandsWithoutDependency();

Expand Down

0 comments on commit 7c90d2b

Please sign in to comment.