Allow manual entry of IP address in setup

Also fixed a small bug in the main page
This commit is contained in:
Chris Josten 2021-08-02 00:57:14 +02:00
parent 242ccc90c1
commit df1e134821
2 changed files with 18 additions and 3 deletions

View File

@ -79,7 +79,7 @@ ApplicationWindow {
onClicked: playbackManager.previous();
}
Button {
readonly property bool _playing: manager.playbackState === MediaPlayer.PlayingState;
readonly property bool _playing: playbackManager.playbackState === MediaPlayer.PlayingState;
anchors.verticalCenter: parent.verticalCenter
text: _playing ? "Pause" : "Play"
onClicked: _playing ? playbackManager.pause() : playbackManager.play()

View File

@ -30,11 +30,26 @@ Page {
header: Column {
width: parent.width
Label {
text: "Enter an IP address"
text: "Enter the Jellyfin server URL"
width: parent.width
}
TextField {
Row {
width: parent.width
TextField {
id: serverAddressField
width: parent.width - goButton.width
}
Button {
id: goButton
text: "Go"
onClicked: {
selectedServerName = serverAddressField.text
ApiClient.baseUrl = serverAddressField.text
ApiClient.setupConnection()
busyDialog.open()
}
}
}
}
delegate: RadioDelegate {