mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-27 08:24:39 -07:00
Clean up progress bar.
This commit is contained in:
parent
8f6f172169
commit
d3487c031e
1 changed files with 4 additions and 0 deletions
|
|
@ -668,6 +668,10 @@ void LoadSetsPage::importFinished()
|
||||||
progressLabel->setText(tr("Parsing file (100%)"));
|
progressLabel->setText(tr("Parsing file (100%)"));
|
||||||
QTimer::singleShot(500, this, [this] {
|
QTimer::singleShot(500, this, [this] {
|
||||||
if (wizard()->currentPage() == this) {
|
if (wizard()->currentPage() == this) {
|
||||||
|
// Leave the page pristine: hide the completed load bar so a later
|
||||||
|
// Back from the save page doesn't show stale progress.
|
||||||
|
progressLabel->hide();
|
||||||
|
progressBar->hide();
|
||||||
wizard()->next();
|
wizard()->next();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue