Skip to content

Settings aren't applied if enter is not used #3

Description

@ZeiP

Settings (hotspot name and PSK) aren't applied if enter is not used, for example if the user selects another field manually. This could be solved with something like this:

diff --git a/qml/pages/HotSpot.qml b/qml/pages/HotSpot.qml
index 04e21fb..7998805 100644
--- a/qml/pages/HotSpot.qml
+++ b/qml/pages/HotSpot.qml
@@ -97,6 +97,8 @@ Page {
                 anchors.horizontalCenter: parent.horizontalCenter

                 onClicked: {
+                    app.hotspot_name = input_name.text
+                    app.hotspot_passwd = input_passwd.text
                     // trigger timers to actually do the job
                     app.enable_timer = !app.hotspot_enabled // enable if it was'nt on
                     app.disable_timer = app.hotspot_enabled // disable if it was on

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions