feat: bookmark the site directory on a first start

This commit is contained in:
randogoth 2026-10-11 22:58:02 +03:00
parent 95602ac623
commit dcb70a93d1
14 changed files with 506 additions and 1 deletions

View file

@ -101,6 +101,11 @@ class AppDependencies {
Future<void> start() async {
await settings.load();
await applyLanguage();
// A fresh install starts with the project's directory of sites
// bookmarked, so the reader has somewhere to go; it is given once, so
// removing it is the reader's own and it never comes back.
await db.seedDirectoryBookmark(
'https://mews.page/directory', strings.t('bookmarks-directory-title'));
await bookmarks.load();
await subscriptions.load();
await browser.restoreLastSession();