mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add session manage page
This commit is contained in:
@@ -176,6 +176,7 @@ enum MoreVertSettings {
|
||||
markAsAd,
|
||||
markAsNonAd,
|
||||
shareGallery,
|
||||
sessions,
|
||||
}
|
||||
|
||||
void onMoreVertSettingsSelected(BuildContext context, MoreVertSettings value) {
|
||||
@@ -207,6 +208,9 @@ void onMoreVertSettingsSelected(BuildContext context, MoreVertSettings value) {
|
||||
context.push("/dialog/gallery/share/$gid");
|
||||
}
|
||||
break;
|
||||
case MoreVertSettings.sessions:
|
||||
context.push("/sessions");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -234,6 +238,10 @@ List<PopupMenuEntry<MoreVertSettings>> buildMoreVertSettings(
|
||||
list.add(PopupMenuItem(
|
||||
value: MoreVertSettings.taskManager, child: Text(i18n.taskManager)));
|
||||
}
|
||||
if (path != "/sessions") {
|
||||
list.add(PopupMenuItem(
|
||||
value: MoreVertSettings.sessions, child: Text(i18n.sessionManagemant)));
|
||||
}
|
||||
if (path == "/gallery/:gid" && auth.canShareGallery == true) {
|
||||
list.add(PopupMenuItem(
|
||||
value: MoreVertSettings.shareGallery, child: Text(i18n.shareGallery)));
|
||||
|
||||
Reference in New Issue
Block a user