mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
Use less frequent polling when wpa_gui is hidden
This commit is contained in:
parent
ac5953db66
commit
64a6f69362
@ -702,6 +702,14 @@ void WpaGui::ping()
|
|||||||
updateStatus();
|
updateStatus();
|
||||||
updateNetworks();
|
updateNetworks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CONFIG_CTRL_IFACE_NAMED_PIPE
|
||||||
|
/* Use less frequent pings and status updates when the main window is
|
||||||
|
* hidden (running in taskbar). */
|
||||||
|
int interval = isHidden() ? 5000 : 1000;
|
||||||
|
if (timer->interval() != interval)
|
||||||
|
timer->setInterval(interval);
|
||||||
|
#endif /* CONFIG_CTRL_IFACE_NAMED_PIPE */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user