Skip to content

Commit

Permalink
Check available diskspace in download_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed Jul 29, 2023
1 parent 79b6d72 commit e6d5797
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Add notifications on successful download and installation of games (thanks to orende)
- Add category filtering dialog for game library (thanks to orende)
- Parallelize api.can_connect function with threads, futures (thanks to orende)
- Fix available disk space being checked in parent directory (thanks to Unrud)

**1.2.2**
- Fix progress bar not showing up for downloads
Expand Down
2 changes: 1 addition & 1 deletion minigalaxy/ui/gametile.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def __download(self, download_info, download_type, finish_func, cancel_to_state)
download_files.insert(0, download)
self.download_list.extend(download_files)

if check_diskspace(total_file_size, self.config.install_dir):
if check_diskspace(total_file_size, download_path):
self.download_manager.download(download_files)
ds_msg_title = ""
ds_msg_text = ""
Expand Down
2 changes: 1 addition & 1 deletion minigalaxy/ui/gametilelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def __download(self, download_info, download_type, finish_func, cancel_to_state)
download_files.insert(0, download)
self.download_list.extend(download_files)

if check_diskspace(total_file_size, self.config.install_dir):
if check_diskspace(total_file_size, download_path):
self.download_manager.download(download_files)
ds_msg_title = ""
ds_msg_text = ""
Expand Down

0 comments on commit e6d5797

Please sign in to comment.