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

@@ -89,14 +89,14 @@ class _MainPageState extends State<MainPage> {
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);
},
)
],