disable table update when widget is hidden or tab inactive

This commit is contained in:
jolavillette 2025-12-21 13:19:11 +01:00
parent 714c5caa36
commit 4c4cfbb48a

View File

@ -136,8 +136,8 @@ void RttStatistics::processSettings(bool bLoad)
// --- Table Update Logic (O(N) Optimized) ---
void RttStatistics::updateRttValues()
{
// Optimize: Only update if Table tab is visible (Index 1)
if (tabWidget->currentIndex() != 1) return;
// Only update if the rtt tab is visible and the table view is selected
if (!isVisible() || tabWidget->currentIndex() != 1) return;
std::list<RsPeerId> idList;
if (!rsPeers) return;