@@ -137,7 +137,8 @@ class _SettingDownloadPageState extends State<SettingDownloadPage> {
137
137
Widget _buildDefaultGalleryGroup (BuildContext context) {
138
138
return ListTile (
139
139
title: Text ('defaultGalleryGroup' .tr),
140
- trailing: Text (DownloadSetting .defaultGalleryGroup.value ?? 'default' .tr, style: UIConfig .settingPageListTileTrailingTextStyle (context)),
140
+ subtitle: Text ('longPress2Reset' .tr),
141
+ trailing: Text (DownloadSetting .defaultGalleryGroup.value ?? '' , style: UIConfig .settingPageListTileTrailingTextStyle (context)),
141
142
onTap: () async {
142
143
({String group, bool downloadOriginalImage})? result = await showDialog (
143
144
context: context,
@@ -152,28 +153,34 @@ class _SettingDownloadPageState extends State<SettingDownloadPage> {
152
153
DownloadSetting .saveDefaultGalleryGroup (result.group);
153
154
}
154
155
},
156
+ onLongPress: () {
157
+ DownloadSetting .saveDefaultGalleryGroup (null );
158
+ },
155
159
).marginOnly (right: 12 );
156
160
}
157
-
161
+
158
162
Widget _buildDefaultArchiveGroup (BuildContext context) {
159
163
return ListTile (
160
- title: Text ('defaultArchiveGroup' .tr),
161
- trailing: Text (DownloadSetting .defaultArchiveGroup.value ?? 'default' .tr, style: UIConfig .settingPageListTileTrailingTextStyle (context)),
162
- onTap: () async {
163
- ({String group, bool downloadOriginalImage})? result = await showDialog (
164
- context: context,
165
- builder: (_) => EHDownloadDialog (
166
- title: 'chooseGroup' .tr,
167
- currentGroup: DownloadSetting .defaultArchiveGroup.value,
168
- candidates: archiveDownloadService.allGroups,
169
- ),
170
- );
171
-
172
- if (result != null ) {
173
- DownloadSetting .saveDefaultArchiveGroup (result.group);
174
- }
175
- },
176
- ).marginOnly (right: 12 );
164
+ title: Text ('defaultArchiveGroup' .tr),
165
+ subtitle: Text ('longPress2Reset' .tr),
166
+ trailing: Text (DownloadSetting .defaultArchiveGroup.value ?? '' , style: UIConfig .settingPageListTileTrailingTextStyle (context)),
167
+ onTap: () async {
168
+ ({String group, bool downloadOriginalImage})? result = await showDialog (
169
+ context: context,
170
+ builder: (_) => EHDownloadDialog (
171
+ title: 'chooseGroup' .tr,
172
+ currentGroup: DownloadSetting .defaultArchiveGroup.value,
173
+ candidates: archiveDownloadService.allGroups,
174
+ ),
175
+ );
176
+
177
+ if (result != null ) {
178
+ DownloadSetting .saveDefaultArchiveGroup (result.group);
179
+ }
180
+ },
181
+ onLongPress: () {
182
+ DownloadSetting .saveDefaultArchiveGroup (null );
183
+ }).marginOnly (right: 12 );
177
184
}
178
185
179
186
Widget _buildDownloadConcurrency () {
0 commit comments