mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Fix settings page can open settings page via more vert menu
This commit is contained in:
@@ -179,7 +179,8 @@ List<PopupMenuEntry<MoreVertSettings>> buildMoreVertSettings(
|
||||
value: MoreVertSettings.createRootUser,
|
||||
child: Text(AppLocalizations.of(context)!.createRootUser)));
|
||||
}
|
||||
if (path != "/settings") {
|
||||
if (path == null ||
|
||||
(path != "/settings" && !path!.startsWith("/settings/"))) {
|
||||
list.add(PopupMenuItem(
|
||||
value: MoreVertSettings.settings,
|
||||
child: Text(AppLocalizations.of(context)!.settings)));
|
||||
|
||||
Reference in New Issue
Block a user