Skip to content

Commit

Permalink
close menu properly
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Jul 9, 2024
1 parent 3c31acd commit e5f29e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ui/mobile/buttons/menu_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ class _MenuButtonState extends State<MenuButton> {
contentPadding: const EdgeInsets.symmetric(horizontal: 8.0),
title: const Text('Model Settings'),
onTap: () {
Navigator.pop(context); // Close the menu

switch (LargeLanguageModel.of(context).type) {
case LargeLanguageModelType.llamacpp:
Navigator.pushNamed(context, '/llamacpp');
Expand Down

0 comments on commit e5f29e8

Please sign in to comment.