sidebar: display full signal when network strength is GREAT (#21259)

* full signal when network strength is GREAT

* apply review

* space
This commit is contained in:
Dean Lee
2021-06-15 05:54:38 +08:00
committed by GitHub
parent 6816b6d8f8
commit 648b60a381
+2 -1
View File
@@ -55,7 +55,8 @@ void Sidebar::updateState(const UIState &s) {
auto deviceState = sm["deviceState"].getDeviceState();
setProperty("netType", network_type[deviceState.getNetworkType()]);
setProperty("netStrength", (int)deviceState.getNetworkStrength());
int strength = (int)deviceState.getNetworkStrength();
setProperty("netStrength", strength > 0 ? strength + 1 : 0);
auto last_ping = deviceState.getLastAthenaPingTime();
if (last_ping == 0) {