From 83459b4c783a853217cda76236c72c36b33ab70a Mon Sep 17 00:00:00 2001 From: Shazib Hussain Date: Sat, 24 Jun 2023 00:52:20 +0100 Subject: [PATCH] Remove remaining tutorial code (#1174) Looks like this got missed in the last PR! --- packages/loot-core/src/server/main.ts | 8 -------- upcoming-release-notes/1174.md | 6 ++++++ 2 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 upcoming-release-notes/1174.md diff --git a/packages/loot-core/src/server/main.ts b/packages/loot-core/src/server/main.ts index fa0015087c1..9777438cbc0 100644 --- a/packages/loot-core/src/server/main.ts +++ b/packages/loot-core/src/server/main.ts @@ -1475,14 +1475,12 @@ handlers['save-global-prefs'] = async function (prefs) { handlers['load-global-prefs'] = async function () { let [ [, floatingSidebar], - [, seenTutorial], [, maxMonths], [, autoUpdate], [, documentDir], [, encryptKey], ] = await asyncStorage.multiGet([ 'floating-sidebar', - 'seen-tutorial', 'max-months', 'auto-update', 'document-dir', @@ -1490,7 +1488,6 @@ handlers['load-global-prefs'] = async function () { ]); return { floatingSidebar: floatingSidebar === 'true' ? true : false, - seenTutorial: seenTutorial === 'true' ? true : false, maxMonths: stringToInteger(maxMonths || ''), autoUpdate: autoUpdate == null || autoUpdate === 'true' ? true : false, documentDir: documentDir || getDefaultDocumentDir(), @@ -2041,11 +2038,6 @@ handlers['create-budget'] = async function ({ return {}; }; -handlers['set-tutorial-seen'] = async function () { - await asyncStorage.setItem('seen-tutorial', 'true'); - return 'ok'; -}; - handlers['import-budget'] = async function ({ filepath, type }) { try { if (!(await fs.exists(filepath))) { diff --git a/upcoming-release-notes/1174.md b/upcoming-release-notes/1174.md new file mode 100644 index 00000000000..3ccac9bd7e1 --- /dev/null +++ b/upcoming-release-notes/1174.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [Shazib] +--- + +Remove legacy tutorial code from loot-core.