mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 07:37:21 -08:00
FlashExam: write cards not known to file
This commit is contained in:
parent
32e05489f4
commit
c87bdd8e02
1 changed files with 8 additions and 0 deletions
|
@ -95,6 +95,14 @@ void flashExam::initCardsList(QString cardsList, QString answersList) {
|
||||||
|
|
||||||
void flashExam::on_backBtn_clicked()
|
void flashExam::on_backBtn_clicked()
|
||||||
{
|
{
|
||||||
|
if(nonRedundantRandomization) {
|
||||||
|
QString cardsNotKnownQstring;
|
||||||
|
for(int i = 0; i < cardsNotKnown.count(); i++) {
|
||||||
|
cardsNotKnownQstring.append(cardsStringList.at(cardsNotKnown.at(i)) + "\n");
|
||||||
|
}
|
||||||
|
log("Writing cardsNotKnownQstring to file", className);
|
||||||
|
writeFile("/mnt/onboard/onboard/flashexam-cards-not-known_" + QDateTime::currentDateTime().toString("dd.MM.yyyy-hh.mm.ss"), cardsNotKnownQstring);
|
||||||
|
}
|
||||||
this->setDisabled(false);
|
this->setDisabled(false);
|
||||||
setupCardsList();
|
setupCardsList();
|
||||||
ui->stackedWidget->setCurrentIndex(0);
|
ui->stackedWidget->setCurrentIndex(0);
|
||||||
|
|
Loading…
Reference in a new issue