소스 검색

third attempt at fixing off centre start popup

Jonathan Higgins 7 달 전
부모
커밋
e207805d84
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      scenes/Nodes/nodes.tscn
  2. 2 2
      scenes/main/control.gd

+ 1 - 0
scenes/Nodes/nodes.tscn

@@ -2952,6 +2952,7 @@ text = "Length of Silence"
 min_value = 0.01
 max_value = 60.0
 step = 0.01
+value = 10.01
 
 [node name="PopupMenu" parent="silend_silend_1/VBoxContainer/HSplitContainer/HSlider" index="0"]
 auto_translate_mode = 1

+ 2 - 2
scenes/main/control.gd

@@ -59,7 +59,6 @@ func _ready() -> void:
 	get_node("mainmenu").make_node.connect(_make_node_from_search_menu)
 	get_node("mainmenu").open_help.connect(show_help_for_node)
 	
-	check_cdp_location_set()
 	check_user_preferences()
 	get_tree().set_auto_accept_quit(false) #disable closing the app with the x and instead handle it internally
 	
@@ -92,6 +91,7 @@ func _ready() -> void:
 		help_data = JSON.parse_string(file.get_as_text())
 	
 	new_patch()
+	check_cdp_location_set()
 	
 func new_patch():
 	#clear old patch
@@ -182,7 +182,7 @@ func _on_ok_button_button_down() -> void:
 	if OS.get_name() == "Windows":
 		$CdpLocationDialog.current_dir = "C:/"
 	else:
-		$CdpLocationDialog.current_dir = "~/"
+		$CdpLocationDialog.current_dir = OS.get_environment("HOME")
 	$CdpLocationDialog.show()
 
 func _on_cdp_location_dialog_dir_selected(dir: String) -> void: