Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZeiP opened this issue Dec 29, 2013 · 0 comments
Open

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

ZeiP opened this issue Dec 29, 2013 · 0 comments

Comments

@ZeiP
Copy link

ZeiP commented Dec 29, 2013

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant