projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac5953d
)
Use less frequent polling when wpa_gui is hidden
author
Jouni Malinen
<j@w1.fi>
Tue, 16 Dec 2008 19:25:44 +0000
(21:25 +0200)
committer
Jouni Malinen
<j@w1.fi>
Tue, 16 Dec 2008 19:25:44 +0000
(21:25 +0200)
wpa_supplicant/wpa_gui-qt4/wpagui.cpp
patch
|
blob
|
history
diff --git
a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
index
bd1c507
..
670fb6b
100644
(file)
--- a/
wpa_supplicant/wpa_gui-qt4/wpagui.cpp
+++ b/
wpa_supplicant/wpa_gui-qt4/wpagui.cpp
@@
-702,6
+702,14
@@
void WpaGui::ping()
updateStatus();
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 */
}