settings seem to work, wow
This commit is contained in:
parent
f97847b949
commit
be3d8b0e77
2 changed files with 16 additions and 2 deletions
11
qml/main.qml
11
qml/main.qml
|
@ -2,7 +2,7 @@ import QtQuick
|
|||
import QtQuick.Window
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
import QtCore
|
||||
|
||||
|
||||
ApplicationWindow {
|
||||
|
@ -27,18 +27,25 @@ ApplicationWindow {
|
|||
|
||||
Welcome {
|
||||
id: welcome
|
||||
serverAddress: settings.serverAddress
|
||||
onPickServer: function (address) {
|
||||
pick.address = address;
|
||||
stack.push(pick)
|
||||
}
|
||||
}
|
||||
|
||||
Settings {
|
||||
id: settings
|
||||
|
||||
property string serverAddress
|
||||
}
|
||||
|
||||
ServerPick {
|
||||
visible: false
|
||||
id: pick
|
||||
onBack: stack.pop()
|
||||
onSuccess: function (address) {
|
||||
welcome.serverAddress = address;
|
||||
settings.serverAddress = address;
|
||||
stack.pop();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue