Skip to content

Commit 1eb7625

Browse files
nodeeeeeeclaude
andcommitted
Land on Dashboard after first-run install + bump electron version
The post-install path called enterMainApp(), which auto-routed to Settings whenever no courses were loaded — guaranteed to fire on a fresh install since Canvas isn't configured yet. Land on the Dashboard instead; its empty state already nudges users to Settings with an explicit button. Also bump electron/package.json from the stale 0.12.11 → 0.13.2 so the AppImage/dmg/nsis builds match the v0.13.x git tags. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7ae40f7 commit 1eb7625

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "auto-note",
3-
"version": "0.12.11",
3+
"version": "0.13.2",
44
"description": "AutoNote — lecture notes generator from Canvas recordings",
55
"homepage": "https://github.com/nodeeeeee/Auto-Note",
66
"author": {

electron/renderer/app.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,9 +2079,11 @@ async function enterMainApp() {
20792079
const result = await window.api.fetchCourses().catch(() => ({ courses: [] }));
20802080
State.courses = result?.courses || [];
20812081

2082-
if (State.courses.length === 0) {
2083-
State.currentPage = 6;
2084-
}
2082+
// Always land on the main page (Dashboard, idx 0). When no courses are
2083+
// loaded — common right after a fresh install — the Dashboard's empty
2084+
// state already directs the user to Settings with an "Open Settings"
2085+
// button, which is friendlier than auto-jumping there ourselves.
2086+
State.currentPage = 0;
20852087

20862088
buildNav();
20872089
renderPage();

0 commit comments

Comments
 (0)