fix: Add show_group attribute to ConfirmGroup and initialize it based on the number of items

This commit is contained in:
Paul Gauthier 2024-08-23 16:44:58 -07:00 committed by Paul Gauthier (aider)
parent f85db450a1
commit 47294e7609

View file

@ -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):