mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 14:02:48 +00:00
Auto close context menu
This commit is contained in:
parent
b8b34f7f47
commit
a19612575b
1 changed files with 8 additions and 2 deletions
|
@ -127,12 +127,18 @@ class ListOptionsMenu extends StatelessWidget {
|
|||
CustomListTile(
|
||||
title: AppLocalizations.of(context)!.openListUrl,
|
||||
icon: Icons.open_in_browser_rounded,
|
||||
onTap: () => openUrl(list.url)
|
||||
onTap: () {
|
||||
Navigator.pop(context); // Closes the context menu
|
||||
openUrl(list.url);
|
||||
}
|
||||
),
|
||||
CustomListTile(
|
||||
title: AppLocalizations.of(context)!.selectionMode,
|
||||
icon: Icons.check_rounded,
|
||||
onTap: openSelectionMode
|
||||
onTap: () {
|
||||
Navigator.pop(context); // Closes the context menu
|
||||
openSelectionMode();
|
||||
}
|
||||
),
|
||||
],
|
||||
child: Material(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue