[Gui] Always hide progress bar on finished load

The loadFinished signal from QtWebEngine includes a boolean indicating
whether the load was "ssuccessful" or not, but no apparent way to
determine what error, if any, occurred. Given that we are never
displaying any error information to the user, hide the progress bar
regardless of the success or failure of the operation.
This commit is contained in:
Chris Hennes
2021-10-10 22:42:46 -05:00
committed by wwmayer
parent 45632cc32e
commit b36258c870

View File

@@ -693,12 +693,10 @@ void BrowserView::onLoadProgress(int step)
void BrowserView::onLoadFinished(bool ok)
{
if (ok) {
QProgressBar* bar = SequencerBar::instance()->getProgressBar();
bar->setValue(100);
bar->hide();
getMainWindow()->showMessage(QString());
}
QProgressBar* bar = SequencerBar::instance()->getProgressBar();
bar->setValue(100);
bar->hide();
getMainWindow()->showMessage(QString());
isLoading = false;
}