1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-12-22 14:05:18 +00:00

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 {