fix multiple setting pages and search pages

This commit is contained in:
2024-11-12 17:51:20 +08:00
parent 775ab471f5
commit 9b98075153
2 changed files with 9 additions and 2 deletions

View File

@@ -167,6 +167,13 @@ class LocalFavoritesManager with ChangeNotifier {
order_value int order_value int
); );
"""); """);
_db.execute("""
create table if not exists folder_sync (
folder_name text primary key,
source_key text,
source_folder text
);
""");
} }
List<String> find(String id, ComicType type) { List<String> find(String id, ComicType type) {

View File

@@ -89,14 +89,14 @@ class _MainPageState extends State<MainPage> {
icon: Icons.search, icon: Icons.search,
label: "Search".tl, label: "Search".tl,
onTap: () { onTap: () {
to(() => const SearchPage()); to(() => const SearchPage(), preventDuplicate: true);
}, },
), ),
PaneActionEntry( PaneActionEntry(
icon: Icons.settings, icon: Icons.settings,
label: "Settings".tl, label: "Settings".tl,
onTap: () { onTap: () {
to(() => const SettingsPage()); to(() => const SettingsPage(), preventDuplicate: true);
}, },
) )
], ],