mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-12 22:35:18 +00:00
Move save paths when repositioning tabs
Change path position in the arrays when repositioning tabs
This commit is contained in:
parent
5fda35c2d8
commit
d38a6efe9b
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,14 @@ func _on_Tabs_reposition_active_tab_request(idx_to : int) -> void:
|
|||
Global.projects[Global.current_project_index] = Global.projects[idx_to]
|
||||
Global.projects[idx_to] = temp
|
||||
|
||||
# Change save paths
|
||||
var temp_save_path = OpenSave.current_save_paths[Global.current_project_index]
|
||||
OpenSave.current_save_paths[Global.current_project_index] = OpenSave.current_save_paths[idx_to]
|
||||
OpenSave.current_save_paths[idx_to] = temp_save_path
|
||||
var temp_backup_path = OpenSave.backup_save_paths[Global.current_project_index]
|
||||
OpenSave.backup_save_paths[Global.current_project_index] = OpenSave.backup_save_paths[idx_to]
|
||||
OpenSave.backup_save_paths[idx_to] = temp_backup_path
|
||||
|
||||
|
||||
func delete_tab(tab : int) -> void:
|
||||
remove_tab(tab)
|
||||
|
|
Loading…
Add table
Reference in a new issue