summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-06-29 22:33:46 +0200
committertpart <tpart120@proton.me>2024-06-29 22:33:46 +0200
commitfc1c62b80dfe81f97efa2e03c22258c5ce6b5b62 (patch)
tree7a0b28efa9845ee19f749e622f3020cf95e50beb
parentbf3adc086f14cf9c2278aab659cb6c7f6cd4c564 (diff)
downloadhurrycurry-fc1c62b80dfe81f97efa2e03c22258c5ce6b5b62.tar
hurrycurry-fc1c62b80dfe81f97efa2e03c22258c5ce6b5b62.tar.bz2
hurrycurry-fc1c62b80dfe81f97efa2e03c22258c5ce6b5b62.tar.zst
Improve placeholder text
-rw-r--r--client/menu/settings_row.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/menu/settings_row.gd b/client/menu/settings_row.gd
index 879fb363..30b1fd67 100644
--- a/client/menu/settings_row.gd
+++ b/client/menu/settings_row.gd
@@ -21,7 +21,10 @@ func setup(key: String, dict: Dictionary, defaults: Dictionary):
"line":
value_node = LineEdit.new()
value_node.text = value
- value_node.placeholder_text = default
+ if default != "":
+ value_node.placeholder_text = default
+ else:
+ value_node.placeholder_text = description
"dropdown":
value_node = OptionButton.new()
for i in setting["options"]: