enable ISO convert feature

This commit is contained in:
Kevin Kim
2021-04-19 09:30:04 +09:00
parent 6c9b084a8e
commit f09885abff
2 changed files with 3 additions and 5 deletions

2
debian/changelog vendored
View File

@@ -1,7 +1,7 @@
systemback (1.9.4hamonikr7) jin; urgency=low
* Update systemback/systemback.cpp
- enable ISO convert more than 4GB
- enable ISO convert feature
- fix #2 - https://github.com/hamonikr/systemback/issues/2
-- HamoniKR <pkg@hamonikr.org> Sun, 18 Apr 2021 21:16:03 +0900

View File

@@ -5460,8 +5460,7 @@ void systemback::on_livelist_currentItemChanged(QLWI *crrnt)
if(! ui->livedelete->isEnabled()) ui->livedelete->setEnabled(true);
ullong isize(sb::fsize(sb::sdir[2] % '/' % sb::left(crrnt->text(), sb::instr(crrnt->text(), " ") - 1) % ".sblive"));
// if(isize && isize < 4294967295 && isize * 2 + 104857600 < sb::dfree(sb::sdir[2]) && ! sb::exist(sb::sdir[2] % '/' % sb::left(crrnt->text(), sb::instr(crrnt->text(), " ") - 1) % ".iso"))
if(isize && isize < 34359738368 && isize * 2 + 104857600 < sb::dfree(sb::sdir[2]) && ! sb::exist(sb::sdir[2] % '/' % sb::left(crrnt->text(), sb::instr(crrnt->text(), " ") - 1) % ".iso"))
if(isize && isize < 4294967295 && isize * 2 + 104857600 < sb::dfree(sb::sdir[2]) && ! sb::exist(sb::sdir[2] % '/' % sb::left(crrnt->text(), sb::instr(crrnt->text(), " ") - 1) % ".iso"))
{
if(! ui->liveconvert->isEnabled()) ui->liveconvert->setEnabled(true);
}
@@ -7463,8 +7462,7 @@ void systemback::on_livenew_clicked()
{
ullong isize(sb::fsize(sb::sdir[2] % '/' % ifname % ".sblive"));
// if(isize < 4294967295 && isize + 52428800 < sb::dfree(sb::sdir[2]))
if(isize < 34359738368 && isize + 52428800 < sb::dfree(sb::sdir[2]))
if(isize < 4294967295 && isize + 52428800 < sb::dfree(sb::sdir[2]))
{
pset(20, " 4/3+1"),
sb::Progress = -1;