mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[snap] feature -> allowing the user to install an application when a stable channel is not available
This commit is contained in:
@@ -59,9 +59,6 @@ class SingleSelectComponent(InputViewComponent):
|
||||
|
||||
def __init__(self, type_: SelectViewType, label: str, options: List[InputOption], default_option: InputOption = None, max_per_line: int = 1, id_: str = None):
|
||||
super(SingleSelectComponent, self).__init__(id_=id_)
|
||||
if options is None or len(options) < 2:
|
||||
raise Exception("'options' must be a list with at least 2 elements")
|
||||
|
||||
self.type = type_
|
||||
self.label = label
|
||||
self.options = options
|
||||
|
||||
Reference in New Issue
Block a user