Skip to content

Commit

Permalink
Fixed Size Issue With All() Function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace-Krypton committed Aug 22, 2023
1 parent aeabc14 commit 5ebe116
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions qml/MainPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,15 @@ Item {
}

onClicked: {
utils.runAllBenchmarks(comboGiB.currentText.match(
/\d+/)[0],
combo.currentText, mainPage)
const gibText = comboGiB.currentText.match(/\d+/)[0]
const comboText = combo.currentText

if (system.hasEnoughSpace(comboGiB.currentText)) {
utils.runAllBenchmarks(gibText, comboText, mainPage)
} else {
console.log(
"You don't have enough space on your system, please lower the test size")
}
}
}
}
Expand Down

0 comments on commit 5ebe116

Please sign in to comment.