mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
fix: Add show_group attribute to ConfirmGroup and initialize it based on the number of items
This commit is contained in:
parent
f85db450a1
commit
47294e7609
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@ from .utils import is_image_file
|
|||
@dataclass
|
||||
class ConfirmGroup:
|
||||
preference: str = None
|
||||
show_group: bool = True
|
||||
|
||||
def __init__(self, items):
|
||||
self.show_group = len(items) > 1
|
||||
|
||||
|
||||
class AutoCompleter(Completer):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue