mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
normally i should've returned. might be oversimplified :P
This commit is contained in:
@@ -422,10 +422,12 @@ Singleton {
|
||||
// Helper functions
|
||||
function getSignalInfo(signal, isConnected) {
|
||||
let icon = "";
|
||||
if (isConnected && root.networkConnectivity === "limited") {
|
||||
icon = "wifi-exclamation";
|
||||
} else if (isConnected && root.networkConnectivity === "portal" || root.networkConnectivity === "unknown") {
|
||||
icon = "wifi-question";
|
||||
if (isConnected) {
|
||||
if (root.networkConnectivity === "limited") {
|
||||
icon = "wifi-exclamation";
|
||||
} else if (root.networkConnectivity === "portal" || root.networkConnectivity === "unknown") {
|
||||
icon = "wifi-question";
|
||||
}
|
||||
}
|
||||
// This is a draft actual ranges can be changed.
|
||||
const label = signal >= 80 ? I18n.tr("wifi.signal.excellent") : signal >= 60 ? I18n.tr("wifi.signal.good") : signal >= 35 ? I18n.tr("wifi.signal.fair") : signal >= 10 ? I18n.tr("wifi.signal.poor") : I18n.tr("wifi.signal.weak");
|
||||
|
||||
Reference in New Issue
Block a user