mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 01:34:46 +00:00
dataproviders: Fix mobile provider label
This commit is contained in:
parent
bca3fb3626
commit
a219c59a1f
2 changed files with 2 additions and 6 deletions
|
|
@ -66,10 +66,7 @@ bool SignalIndicator::simLocked() const
|
||||||
|
|
||||||
bool SignalIndicator::simEmpty() const
|
bool SignalIndicator::simEmpty() const
|
||||||
{
|
{
|
||||||
if (!m_modemDevice) {
|
return !m_modemDevice || !m_modemDevice->sim() || (m_modemDevice->sim()->uni() == QStringLiteral("/"));
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return m_modemDevice && m_modemDevice->sim() && m_modemDevice->sim()->uni() == QStringLiteral("/");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SignalIndicator::mobileDataSupported() const
|
bool SignalIndicator::mobileDataSupported() const
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,7 @@ QtObject {
|
||||||
|
|
||||||
property string icon: "network-mobile-" + Math.floor(SignalIndicator.strength / 20) * 20
|
property string icon: "network-mobile-" + Math.floor(SignalIndicator.strength / 20) * 20
|
||||||
|
|
||||||
property string label: !SignalIndicator.available ? ""
|
property string label: SignalIndicator.simLocked ? i18n("SIM Locked") : SignalIndicator.name
|
||||||
: SignalIndicator.simLocked ? i18n("SIM Locked") : SignalIndicator.name
|
|
||||||
|
|
||||||
property bool showIndicator: SignalIndicator.modemAvailable
|
property bool showIndicator: SignalIndicator.modemAvailable
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue