mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-22 01:05:17 +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();
|
onClicked: playbackManager.previous();
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
readonly property bool _playing: manager.playbackState === MediaPlayer.PlayingState;
|
readonly property bool _playing: playbackManager.playbackState === MediaPlayer.PlayingState;
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: _playing ? "Pause" : "Play"
|
text: _playing ? "Pause" : "Play"
|
||||||
onClicked: _playing ? playbackManager.pause() : playbackManager.play()
|
onClicked: _playing ? playbackManager.pause() : playbackManager.play()
|
||||||
|
|
|
@ -30,11 +30,26 @@ Page {
|
||||||
header: Column {
|
header: Column {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
Label {
|
Label {
|
||||||
text: "Enter an IP address"
|
text: "Enter the Jellyfin server URL"
|
||||||
width: parent.width
|
width: parent.width
|
||||||
}
|
}
|
||||||
TextField {
|
Row {
|
||||||
width: parent.width
|
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 {
|
delegate: RadioDelegate {
|
||||||
|
|
Loading…
Reference in a new issue