Add a refresh button to network favorites page.

This commit is contained in:
2025-03-09 16:38:39 +08:00
parent 68b214e295
commit ca8f09807b
2 changed files with 15 additions and 2 deletions

View File

@@ -367,7 +367,9 @@
"Home Page": "主页",
"Favorites Page": "收藏页面",
"Explore Page": "探索页面",
"Categories Page": "分类页面"
"Categories Page": "分类页面",
"Convert to local": "转换为本地",
"Refresh": "刷新"
},
"zh_TW": {
"Home": "首頁",
@@ -737,6 +739,8 @@
"Home Page": "主頁",
"Favorites Page": "收藏頁面",
"Explore Page": "探索頁面",
"Categories Page": "分類頁面"
"Categories Page": "分類頁面",
"Convert to local": "轉換為本地",
"Refresh": "刷新"
}
}

View File

@@ -110,6 +110,15 @@ class _NormalFavoritePageState extends State<_NormalFavoritePage> {
child: Text(widget.data.title),
),
actions: [
Tooltip(
message: "Refresh".tl,
child: IconButton(
icon: const Icon(Icons.refresh),
onPressed: () {
comicListKey.currentState!.refresh();
},
),
),
MenuButton(entries: [
MenuEntry(
icon: Icons.sync,