From 9224c79cb54809bab1761213386497c582838098 Mon Sep 17 00:00:00 2001 From: Sneed Group Holder Date: Sun, 29 Dec 2024 16:56:38 -0600 Subject: [PATCH] start fixing --- .gitignore | 2 ++ renderer.js | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..713d500 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +.env diff --git a/renderer.js b/renderer.js index d5393cf..50366a5 100644 --- a/renderer.js +++ b/renderer.js @@ -24,9 +24,13 @@ function switchTab(tabName) { // Activate the selected tab and section if (tabName === 'downloads') { + document.getElementById('libraryTab').classList.remove('active'); + document.getElementById('librarySection').classList.remove('active'); document.getElementById('downloadsTab').classList.add('active'); document.getElementById('downloadsSection').classList.add('active'); } else if (tabName === 'library') { + document.getElementById('downloadsTab').classList.remove('active'); + document.getElementById('downloadsSection').classList.remove('active'); document.getElementById('libraryTab').classList.add('active'); document.getElementById('librarySection').classList.add('active'); loadLibrary(); // Load the library when switching to this tab