MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / cancelRefresh

Method cancelRefresh

pcsx2-qt/GameList/GameListWidget.cpp:565–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565void GameListWidget::cancelRefresh()
566{
567 if (!m_refresh_thread)
568 return;
569
570 m_refresh_thread->cancel();
571 m_refresh_thread->wait();
572
573 // Cancelling might not be instant if we're say, scanning a gzip dump. Wait until it's done.
574 while (m_refresh_thread)
575 QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 1);
576}
577
578void GameListWidget::reloadThemeSpecificImages()
579{

Callers 1

cancelGameListRefreshMethod · 0.80

Calls 2

cancelMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected