Hides the add student button.

This commit is contained in:
Dylan Sarrazyn
2024-12-05 10:08:20 +01:00
parent 2a92f1bd97
commit d9732c8bdb
3 changed files with 14 additions and 13 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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"