mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 07:24:15 +02:00
[arch] improvement -> AUR: the index is not always being updated during the initialization process
This commit is contained in:
@@ -491,7 +491,7 @@ class TextInputQt(QGroupBox):
|
||||
if model.tooltip:
|
||||
self.text_input.setToolTip(model.tooltip)
|
||||
|
||||
if model.value:
|
||||
if model.value is not None:
|
||||
self.text_input.setText(model.value)
|
||||
self.text_input.setCursorPosition(0)
|
||||
|
||||
@@ -786,8 +786,8 @@ class FormQt(QGroupBox):
|
||||
if c.placeholder:
|
||||
view.setPlaceholderText(c.placeholder)
|
||||
|
||||
if c.value:
|
||||
view.setText(str(c.value) if c.value else '')
|
||||
if c.value is not None:
|
||||
view.setText(str(c.value))
|
||||
view.setCursorPosition(0)
|
||||
|
||||
if c.read_only:
|
||||
|
||||
Reference in New Issue
Block a user