From 4f1c19563b59d6ac416bbca26657e4fc145821bc Mon Sep 17 00:00:00 2001
From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com>
Date: Mon, 28 Sep 2020 00:56:58 +0300
Subject: [PATCH] When moving tabs, the projects now move along with their
respective tabs
---
CHANGELOG.md | 6 ++++++
src/UI/Tabs.gd | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 95dbf911a..a2b6a7c7a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). All the dates are in YYYY-MM-DD format.
+## [v0.8.1] - Unreleased
+### Fixed
+- Crash where Pixelorama could not load a cached sub-resource - [Issue #339](https://github.com/Orama-Interactive/Pixelorama/issues/339)
+- When moving tabs, the projects now move along with their respective tabs.
+
+
## [v0.8] - 2020-09-23
This update has been brought to you by the contributions of:
Darshan Phaldesai (luiq54), Igor Santarek (jegor377), rob-a-bolton, Kinwailo, Michael Alexsander (YeldhamDev), Hugo Locurcio (Calinou), Martin Novák (novhack), Xenofon Konitsas (huskeee), Matthew Paul (matthewpaul-us)
diff --git a/src/UI/Tabs.gd b/src/UI/Tabs.gd
index c5ccd5907..1c09223ba 100644
--- a/src/UI/Tabs.gd
+++ b/src/UI/Tabs.gd
@@ -20,8 +20,8 @@ func _on_Tabs_tab_close(tab : int) -> void:
func _on_Tabs_reposition_active_tab_request(idx_to : int) -> void:
var temp = Global.projects[Global.current_project_index]
- Global.projects[Global.current_project_index] = Global.projects[idx_to]
- Global.projects[idx_to] = temp
+ Global.projects.erase(temp)
+ Global.projects.insert(idx_to, temp)
# Change save paths
var temp_save_path = OpenSave.current_save_paths[Global.current_project_index]