update bindings, indicate that saving a queue can overwrite playlist

closes #60
This commit is contained in:
Henrik Friedrichsen
2019-04-20 14:49:44 +02:00
parent 463a8bfcca
commit 82e1e3d1c2
3 changed files with 13 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
use std::path::Path;
use cursive::traits::Boxable;
use cursive::view::Identifiable;
use cursive::views::*;
use cursive::{CbSink, Cursive};
@@ -20,10 +21,16 @@ pub fn create_credentials(path: &Path) -> Result<RespotCredentials, String> {
.title("Spotify login")
.content(
ListView::new()
.child("Username", EditView::new().with_id("spotify_user"))
.child(
"Username",
EditView::new().with_id("spotify_user").fixed_width(18),
)
.child(
"Password",
EditView::new().secret().with_id("spotify_password"),
EditView::new()
.secret()
.with_id("spotify_password")
.fixed_width(18),
),
)
.button("Login", |s| {