mirror of https://github.com/cutefishos/calamares
[libcalamaresui] Avoid requirements-results UI duplication
If the requirements checking is **really fast**, e.g. you don't have a check for internet connectivity, then the checks might be done as fast as the 0-timeout single-shot timer, which means that finished() is called once by the QFutureWatcher, and then after that by the QTimer .. leading to two messages "All requirements have been checked", but also twice requirementsComplete being emitted, so you end up with two results lists being added by the CheckerContainer. Stop that by using the results-progress timer as an additional flag: the first time everything is complete, delete that timer and set the pointer back to nullptr.main
parent
06bd8749a2
commit
2b91608b82
Loading…
Reference in New Issue