Skip to content

Commit

Permalink
lower long press timer for session tile
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Aug 4, 2024
1 parent b4cb278 commit 7b74c5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/ui/shared/dialogs/load_model_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ class _LoadModelDialogState extends State<LoadModelDialog> {
children: [
FilledButton(
onPressed: () {
print("Selected: $selected");
LlamaCppModel.of(context).name = selected!;
print("Selected: ${importedModels![selected!]}");
LlamaCppModel.of(context).uri = importedModels![selected!]!;
Navigator.of(context).pop();
},
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/shared/tiles/session_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class _SessionTileState extends State<SessionTile> {
}

void onTapDown(TapDownDetails details) {
longPressTimer = Timer(const Duration(seconds: 1), () {
longPressTimer = Timer(const Duration(milliseconds: 500), () {
showContextMenu(details.globalPosition);
});
}
Expand Down

0 comments on commit 7b74c5d

Please sign in to comment.