diff --git a/qtquick/qml/main.qml b/qtquick/qml/main.qml index 505e3d0..6e98d8f 100644 --- a/qtquick/qml/main.qml +++ b/qtquick/qml/main.qml @@ -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() diff --git a/qtquick/qml/pages/setup/ServerSelectPage.qml b/qtquick/qml/pages/setup/ServerSelectPage.qml index ed0a23d..da2495f 100644 --- a/qtquick/qml/pages/setup/ServerSelectPage.qml +++ b/qtquick/qml/pages/setup/ServerSelectPage.qml @@ -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 {