mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Do not show "Sim Locked" when there's no SIM card
Fixes https://invent.kde.org/plasma/plasma-phone-components/-/issues/115
(cherry picked from commit d238aa3031)
This commit is contained in:
parent
f6c1d727d7
commit
cfcab16fb2
2 changed files with 6 additions and 4 deletions
|
|
@ -1,12 +1,12 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
|
||||
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
||||
* SPDX-FileCopyrightText: 2021 Tobias Fella <fella@posteo.de>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import QtQuick 2.1
|
||||
import QtQuick.Layouts 1.1
|
||||
|
||||
import org.kde.plasma.mm 1.0
|
||||
|
||||
|
|
@ -14,6 +14,7 @@ QtObject {
|
|||
|
||||
property string icon: "network-mobile-" + Math.floor(SignalIndicator.strength / 20) * 20
|
||||
|
||||
property string label: SignalIndicator.simLocked ? i18n("Sim Locked") : SignalIndicator.name
|
||||
property string label: !SignalIndicator.available ? ""
|
||||
: SignalIndicator.simLocked ? i18n("Sim Locked") : SignalIndicator.name
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
||||
* SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
|
||||
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
||||
* SPDX-FileCopyrightText: 2021 Tobias Fella <fella@posteo.de>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
|
@ -14,6 +14,7 @@ QtObject {
|
|||
|
||||
property string icon: "network-mobile-" + Math.floor(SignalIndicator.strength / 20) * 20
|
||||
|
||||
property string label: SignalIndicator.simLocked ? i18n("Sim Locked") : SignalIndicator.name
|
||||
property string label: !SignalIndicator.available ? ""
|
||||
: SignalIndicator.simLocked ? i18n("Sim Locked") : SignalIndicator.name
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue