From 203a45a01b8bcd1cb3ce93c8cec6237ab878f311 Mon Sep 17 00:00:00 2001
From: "Mr. Stallion" <mrstallion@nobody.nowhere.fauxdomain.ext>
Date: Sat, 24 Dec 2022 12:49:03 -0800
Subject: [PATCH] fix tab order

---
 electron/Window.vue | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/electron/Window.vue b/electron/Window.vue
index 0823fa8..0fe2388 100644
--- a/electron/Window.vue
+++ b/electron/Window.vue
@@ -235,9 +235,15 @@
             Sortable.create(<HTMLElement>this.$refs['tabs'], {
                 animation: 50,
                 onEnd: (e) => {
+                    // log.debug('ONEND', e);
                     if(e.oldIndex === e.newIndex) return;
-                    const tab = this.tabs.splice(e.oldIndex!, 1)[0];
-                    this.tabs.splice(e.newIndex!, 0, tab);
+
+                    // log.debug('PRE', this.tabs);
+                    //
+                    // const tab = this.tabs.splice(e.oldIndex!, 1)[0];
+                    // this.tabs.splice(e.newIndex!, 0, tab);
+                    //
+                    // log.debug('POST', this.tabs);
                 },
                 onMove: (e: {related: HTMLElement}) => e.related.id !== 'addTab',
                 filter: '.addTab'