System report: Small logical fix

This commit is contained in:
Nicolas Mailloux 2022-03-01 23:41:38 -05:00
parent 304b6b117a
commit 493d217ebe

View file

@ -988,13 +988,12 @@ void settings::on_generateSystemReportBtn_clicked()
if(QFile::exists("/inkbox/systemReportDone")) {
if(checkconfig("/inkbox/systemReportDone") == true) {
emit showToast("System report generated successfully");
break;
}
else {
emit showToast("Error in generating system report");
break;
}
QFile::remove("/inkbox/systemReportDone");
break;
}
}
}