mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03: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
This commit is contained in:
parent
43f2f293cf
commit
d238aa3031
2 changed files with 6 additions and 4 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
|
* SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
|
||||||
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
||||||
|
* SPDX-FileCopyrightText: 2021 Tobias Fella <fella@posteo.de>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.1
|
||||||
import QtQuick.Layouts 1.1
|
|
||||||
|
|
||||||
import org.kde.plasma.mm 1.0
|
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 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: 2021 Devin Lin <espidev@gmail.com>
|
||||||
|
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
||||||
* SPDX-FileCopyrightText: 2021 Tobias Fella <fella@posteo.de>
|
* SPDX-FileCopyrightText: 2021 Tobias Fella <fella@posteo.de>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
* 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 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