mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 00:33:44 +08:00
sidebar: display full signal when network strength is GREAT (#21259)
* full signal when network strength is GREAT * apply review * space old-commit-hash: 648b60a381e08597f2a7c2b05142070b947fa128
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user