From 9b9807515302c7206509191ff6fed9b9343159fb Mon Sep 17 00:00:00 2001 From: nyne Date: Tue, 12 Nov 2024 17:51:20 +0800 Subject: [PATCH] fix multiple setting pages and search pages --- lib/foundation/favorites.dart | 7 +++++++ lib/pages/main_page.dart | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/foundation/favorites.dart b/lib/foundation/favorites.dart index 4ed1cd1..a2aff14 100644 --- a/lib/foundation/favorites.dart +++ b/lib/foundation/favorites.dart @@ -167,6 +167,13 @@ class LocalFavoritesManager with ChangeNotifier { order_value int ); """); + _db.execute(""" + create table if not exists folder_sync ( + folder_name text primary key, + source_key text, + source_folder text + ); + """); } List find(String id, ComicType type) { diff --git a/lib/pages/main_page.dart b/lib/pages/main_page.dart index 3cf50ea..4610da6 100644 --- a/lib/pages/main_page.dart +++ b/lib/pages/main_page.dart @@ -89,14 +89,14 @@ class _MainPageState extends State { icon: Icons.search, label: "Search".tl, onTap: () { - to(() => const SearchPage()); + to(() => const SearchPage(), preventDuplicate: true); }, ), PaneActionEntry( icon: Icons.settings, label: "Settings".tl, onTap: () { - to(() => const SettingsPage()); + to(() => const SettingsPage(), preventDuplicate: true); }, ) ],