Skip to content

Commit 17e57f7

Browse files
committed
dashboard: Don't enable by default
1 parent 8313bb5 commit 17e57f7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Live Grep grows into a universal search overlay: search across multiple **scopes
2929

3030
### Improvements
3131

32+
* The **dashboard no longer opens automatically** on startup by default. To re-enable it, open **Settings**, select **Plugin: dashboard**, and turn on **AutoOpen** ("Show the dashboard automatically when Fresh starts with no real files open."). The dashboard remains available any time via the **Show Dashboard** command.
3233
* Homebrew install simplified now that fresh-editor is in homebrew-core — `brew install fresh-editor`, no tap step.
3334

3435
### Bug Fixes

crates/fresh-editor/plugins/dashboard.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const editor = getEditor();
1616
// it is never loaded, so no buffers are created, no timers run,
1717
// and no network fetches fire.
1818
//
19-
// A second flag `plugins.dashboard.auto-open` (default true) gates
19+
// A second flag `plugins.dashboard.auto-open` (default false) gates
2020
// only the ambient open paths (startup + last-buffer-closed). When
2121
// false the plugin still loads and the "Show Dashboard" command is
2222
// still available — it just won't appear on its own.
@@ -1590,7 +1590,7 @@ registerHandler("dashboardShowOrFocus", dashboardShowOrFocus);
15901590
// comes from the typed plugin-config field declared below. The field
15911591
// shows up in the Settings UI under "Plugin Settings → dashboard".
15921592
editor.defineConfigBoolean("autoOpen", {
1593-
default: true,
1593+
default: false,
15941594
description: "Show the dashboard automatically when Fresh starts with no real files open.",
15951595
});
15961596

@@ -1599,7 +1599,7 @@ let autoOpenOverride: boolean | null = null;
15991599
function autoOpenEnabled(): boolean {
16001600
if (autoOpenOverride !== null) return autoOpenOverride;
16011601
const cfg = (editor.getPluginConfig() ?? {}) as { autoOpen?: boolean };
1602-
return cfg.autoOpen !== false;
1602+
return cfg.autoOpen === true;
16031603
}
16041604

16051605
function shouldShowDashboard(): boolean {

0 commit comments

Comments
 (0)