mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Fix search sources in search results page.
This commit is contained in:
@@ -384,7 +384,8 @@
|
|||||||
"Pages": "页数",
|
"Pages": "页数",
|
||||||
"Long press zoom position": "长按缩放位置",
|
"Long press zoom position": "长按缩放位置",
|
||||||
"Press position": "按压位置",
|
"Press position": "按压位置",
|
||||||
"Screen center": "屏幕中心"
|
"Screen center": "屏幕中心",
|
||||||
|
"Suggestions": "建议"
|
||||||
},
|
},
|
||||||
"zh_TW": {
|
"zh_TW": {
|
||||||
"Home": "首頁",
|
"Home": "首頁",
|
||||||
@@ -771,6 +772,7 @@
|
|||||||
"Pages": "頁數",
|
"Pages": "頁數",
|
||||||
"Long press zoom position": "長按縮放位置",
|
"Long press zoom position": "長按縮放位置",
|
||||||
"Press position": "按壓位置",
|
"Press position": "按壓位置",
|
||||||
"Screen center": "螢幕中心"
|
"Screen center": "螢幕中心",
|
||||||
|
"Suggestions": "建議"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -441,6 +441,11 @@ class _SearchSettingsDialogState extends State<_SearchSettingsDialog> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
var sources = ComicSource.all();
|
||||||
|
var enabled = appdata.settings['searchSources'] as List;
|
||||||
|
sources.removeWhere((e) {
|
||||||
|
return !enabled.contains(e.key);
|
||||||
|
});
|
||||||
return ContentDialog(
|
return ContentDialog(
|
||||||
title: "Settings".tl,
|
title: "Settings".tl,
|
||||||
content: Column(
|
content: Column(
|
||||||
@@ -452,7 +457,7 @@ class _SearchSettingsDialogState extends State<_SearchSettingsDialog> {
|
|||||||
Wrap(
|
Wrap(
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
runSpacing: 8,
|
runSpacing: 8,
|
||||||
children: ComicSource.all().map((e) {
|
children: sources.map((e) {
|
||||||
return OptionChip(
|
return OptionChip(
|
||||||
text: e.name.tl,
|
text: e.name.tl,
|
||||||
isSelected: searchTarget == e.key,
|
isSelected: searchTarget == e.key,
|
||||||
|
Reference in New Issue
Block a user