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:
parent
242ccc90c1
commit
df1e134821
|
@ -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()
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue