mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 22:33:08 +00:00
remove default status
This commit is contained in:
parent
d37324ee43
commit
884e0a4216
1 changed files with 0 additions and 5 deletions
|
|
@ -9,8 +9,6 @@ import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
||||||
MobileShell.QuickSetting {
|
MobileShell.QuickSetting {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
readonly property string defaultStatus: i18n("Tap to enable hotspot")
|
|
||||||
|
|
||||||
PlasmaNM.Handler {
|
PlasmaNM.Handler {
|
||||||
id: nmHandler
|
id: nmHandler
|
||||||
}
|
}
|
||||||
|
|
@ -19,7 +17,6 @@ MobileShell.QuickSetting {
|
||||||
icon: "network-wireless-hotspot"
|
icon: "network-wireless-hotspot"
|
||||||
|
|
||||||
enabled: false
|
enabled: false
|
||||||
status: defaultStatus
|
|
||||||
|
|
||||||
function toggle() {
|
function toggle() {
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
|
|
@ -34,12 +31,10 @@ MobileShell.QuickSetting {
|
||||||
|
|
||||||
function onHotspotCreated() {
|
function onHotspotCreated() {
|
||||||
root.enabled = true;
|
root.enabled = true;
|
||||||
root.status = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onHotspotDisabled() {
|
function onHotspotDisabled() {
|
||||||
root.enabled = false;
|
root.enabled = false;
|
||||||
root.status = defaultStatus;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue