| 551 | } |
| 552 | |
| 553 | void GameListWidget::refresh(bool invalidate_cache, bool popup_on_error) |
| 554 | { |
| 555 | cancelRefresh(); |
| 556 | |
| 557 | m_refresh_thread = new GameListRefreshThread(invalidate_cache, popup_on_error); |
| 558 | connect(m_refresh_thread, &GameListRefreshThread::refreshProgress, this, &GameListWidget::onRefreshProgress, |
| 559 | Qt::QueuedConnection); |
| 560 | connect(m_refresh_thread, &GameListRefreshThread::refreshComplete, this, &GameListWidget::onRefreshComplete, |
| 561 | Qt::QueuedConnection); |
| 562 | m_refresh_thread->start(); |
| 563 | } |
| 564 | |
| 565 | void GameListWidget::cancelRefresh() |
| 566 | { |
no test coverage detected