disk space check was done on the wrong directory

This commit is contained in:
Faraphel 2022-08-02 18:37:47 +02:00
parent edb19e02e4
commit e126a6b45b

View file

@ -394,7 +394,7 @@ class ButtonInstall(ttk.Button):
return
# if there is no more space on the installer drive, show a warning
if shutil.disk_usage("../../../../Downloads").free < minimum_space_available:
if shutil.disk_usage(".").free < minimum_space_available:
if not messagebox.askokcancel(_("WARNING"), _("WARNING_LOW_SPACE_CONTINUE")):
return