mirror of
https://github.com/Relintai/gdfxr.git
synced 2024-11-18 09:07:23 +01:00
Fix error when confirming unsaved sound
This commit is contained in:
parent
3977e4a553
commit
7b6cc834d5
@ -67,8 +67,8 @@ func _ready():
|
||||
for category in params.get_children():
|
||||
for control in category.get_children():
|
||||
_param_map[control.parameter] = control
|
||||
control.connect("param_changed", _on_param_changed)
|
||||
control.connect("param_reset", _on_param_reset)
|
||||
control.param_changed.connect(_on_param_changed)
|
||||
control.param_reset.connect(_on_param_reset)
|
||||
|
||||
_set_editing_file("")
|
||||
|
||||
@ -338,7 +338,7 @@ func _on_Load_pressed():
|
||||
if _modified:
|
||||
_popup_confirm(
|
||||
translator.t("There are unsaved changes.\nLoad anyway?"),
|
||||
_popup_file_dialog.bind(EditorFileDialog.FILE_MODE_OPEN_FILE, "_set_editing_file")
|
||||
_popup_file_dialog.bind(EditorFileDialog.FILE_MODE_OPEN_FILE, _set_editing_file)
|
||||
)
|
||||
else:
|
||||
_popup_file_dialog(EditorFileDialog.FILE_MODE_OPEN_FILE, _set_editing_file)
|
||||
|
@ -37,8 +37,8 @@ func set_resetable(v: bool) -> void:
|
||||
|
||||
|
||||
func _on_OptionButton_item_selected(index: int):
|
||||
emit_signal("param_changed", parameter, index)
|
||||
param_changed.emit(parameter, index)
|
||||
|
||||
|
||||
func _on_Reset_pressed():
|
||||
emit_signal("param_reset", parameter)
|
||||
param_reset.emit(parameter)
|
||||
|
@ -47,9 +47,9 @@ func set_resetable(v: bool) -> void:
|
||||
|
||||
|
||||
func _on_HSlider_value_changed(value: float):
|
||||
emit_signal("param_changed", parameter, value)
|
||||
param_changed.emit(parameter, value)
|
||||
|
||||
|
||||
func _on_Reset_pressed():
|
||||
emit_signal("param_reset", parameter)
|
||||
param_reset.emit(parameter)
|
||||
|
||||
|
@ -16,9 +16,9 @@ dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.cte
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
|
Loading…
Reference in New Issue
Block a user