aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2026-07-24 22:56:08 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2026-07-24 22:56:08 +0530
commitb157a25b2dfff122908da1c89b7a620655521a64 (patch)
tree942cdf514d6cab52dc82a82ada3d599729e2b6a5
parent130ca2c3b8d871fd32db91924eb67c991ad72fb3 (diff)
default download directory set to downloads folder
-rw-r--r--SoundListItemWidget.py10
-rw-r--r--main.py2
2 files changed, 6 insertions, 6 deletions
diff --git a/SoundListItemWidget.py b/SoundListItemWidget.py
index 194b633..3c62735 100644
--- a/SoundListItemWidget.py
+++ b/SoundListItemWidget.py
@@ -18,7 +18,7 @@ import sys
import shutil
from pathlib import Path
-from PySide6.QtCore import Signal
+from PySide6.QtCore import Signal, QStandardPaths
from PySide6.QtWidgets import QFrame, QHBoxLayout, QLabel, QPushButton, QFileDialog
from Soundboard import SoundboardSound
@@ -64,14 +64,14 @@ class SoundListItemWidget(QFrame):
layout.addWidget(self.btn_play)
def download(self):
+ downloads_dir = Path(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.DownloadLocation))
+
selected_folder = QFileDialog.getSaveFileName(
self,
"Save Audio File",
- self.sound.title + Path(self.sound.path).suffix,
+ str(downloads_dir / (self.sound.title + Path(self.sound.path).suffix)),
"All Files (*)"
)
if selected_folder:
self.download_dest = Path(selected_folder[0])
- print(self.download_dest)
-
- shutil.copy2(self.sound.path, self.download_dest)
+ shutil.copy2(self.sound.path, self.download_dest)
diff --git a/main.py b/main.py
index a104955..6ea1c5f 100644
--- a/main.py
+++ b/main.py
@@ -25,7 +25,7 @@ from Soundboard import Soundboard
from SoundboardEngine import SoundboardEngineWindow
from SoundboardUpdater import SoundboardUpdaterWindow
-APP_VERSION = "0.3.1"
+APP_VERSION = "0.3.2"
if __name__ == "__main__":
config_path = (