diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/backend.go | 6 | ||||
-rw-r--r-- | gui/handlers.cpp | 4 | ||||
-rw-r--r-- | gui/handlers.h | 2 | ||||
-rw-r--r-- | gui/qml/main.qml | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/gui/backend.go b/gui/backend.go index 3e312cf..064bd94 100644 --- a/gui/backend.go +++ b/gui/backend.go @@ -30,9 +30,9 @@ func SwitchOff() { backend.SwitchOff() } -//export UseGateway -func UseGateway(label string) { - backend.UseGateway(label) +//export UseLocation +func UseLocation(label string) { + backend.UseLocation(label) } //export UseTransport diff --git a/gui/handlers.cpp b/gui/handlers.cpp index 370c67c..558c288 100644 --- a/gui/handlers.cpp +++ b/gui/handlers.cpp @@ -42,9 +42,9 @@ void Backend::donateSeen() DonateSeen(); } -void Backend::useGateway(QString label) +void Backend::useLocation(QString label) { - UseGateway(toGoStr(label)); + UseLocation(toGoStr(label)); } void Backend::login(QString username, QString password) diff --git a/gui/handlers.h b/gui/handlers.h index a783207..9d949fc 100644 --- a/gui/handlers.h +++ b/gui/handlers.h @@ -36,7 +36,7 @@ public slots: void switchOff(); void donateAccepted(); void donateSeen(); - void useGateway(QString username); + void useLocation(QString username); void login(QString username, QString password); void resetError(QString errlabel); void resetNotification(QString label); diff --git a/gui/qml/main.qml b/gui/qml/main.qml index dae5ee5..211dbe5 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -163,7 +163,7 @@ Window { model: [qsTr("Automatic")] onActivated: { console.debug("Selected gateway:", currentText) - backend.useGateway(currentText.toString()) + backend.useLocation(currentText.toString()) } } } // end column |