Hides the add student button.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -72,7 +72,7 @@ func _on_add_student_button_pressed() -> void:
|
||||
return
|
||||
|
||||
# TODO Show the popup
|
||||
|
||||
# TODO Hides/Disable the button when not online
|
||||
var res: = await ServerManager.add_student(current_tab.device_id)
|
||||
if res.code == 200:
|
||||
UserDataManager.update_configuration(res.body)
|
||||
|
||||
@@ -107,6 +107,7 @@ theme_override_font_sizes/font_size = 70
|
||||
text = "SETTINGS_ADD_DEVICE"
|
||||
|
||||
[node name="AddStudentButton" type="Button" parent="VBoxContainer/InterfaceBottom/Container"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 70
|
||||
text = "SETTINGS_ADD_STUDENT"
|
||||
|
||||
Reference in New Issue
Block a user