mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 21:44:16 +02:00
[appimage] improvement -> allowing the property 'suggestions.expiration' to be managed through the UI
This commit is contained in:
@@ -226,6 +226,15 @@ class FormComponent(ViewComponent):
|
||||
raise Exception("'{}' is not a {}".format(id_, FormComponent.__class__.__name__))
|
||||
return comp
|
||||
|
||||
def get_text_input(self, id_) -> Optional[TextInputComponent]:
|
||||
comp = self.get_component(id_)
|
||||
|
||||
if comp:
|
||||
if not isinstance(comp, TextInputComponent):
|
||||
raise Exception("'{}' is not a {}".format(id_, TextInputComponent.__class__.__name__))
|
||||
return comp
|
||||
|
||||
|
||||
|
||||
class FileChooserComponent(ViewComponent):
|
||||
|
||||
@@ -309,3 +318,11 @@ class PanelComponent(ViewComponent):
|
||||
if not isinstance(comp, FormComponent):
|
||||
raise Exception("'{}' is not a {}".format(id_, FormComponent.__class__.__name__))
|
||||
return comp
|
||||
|
||||
def get_text_input(self, id_) -> Optional[TextInputComponent]:
|
||||
comp = self.get_component(id_)
|
||||
|
||||
if comp:
|
||||
if not isinstance(comp, TextInputComponent):
|
||||
raise Exception("'{}' is not a {}".format(id_, TextInputComponent.__class__.__name__))
|
||||
return comp
|
||||
|
||||
Reference in New Issue
Block a user