mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-14 11:06:01 +05:00
disable table update when widget is hidden or tab inactive
This commit is contained in:
parent
714c5caa36
commit
4c4cfbb48a
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user