From c649adebdf24cc9ef663ec6051b8fd869356a77e Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Sat, 30 Mar 2019 22:39:40 +0100 Subject: [PATCH] minor wording changes, mainly to make the dialog smaller in width --- src/authentication.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/authentication.rs b/src/authentication.rs index 308f51c..a56649d 100644 --- a/src/authentication.rs +++ b/src/authentication.rs @@ -17,12 +17,12 @@ pub fn create_credentials(path: &Path) -> Result { let info_view = Dialog::around(TextView::new_with_content(info_buf.clone())) .button("Login", move |s| { let login_view = Dialog::new() - .title("Login with Spotify username and password") + .title("Spotify login") .content( ListView::new() - .child("username", EditView::new().with_id("spotify_user")) + .child("Username", EditView::new().with_id("spotify_user")) .child( - "password", + "Password", EditView::new().secret().with_id("spotify_password"), ), ) @@ -64,7 +64,7 @@ pub fn create_credentials(path: &Path) -> Result { .child(controls); let url = urls.get("login_url").unwrap(); webbrowser::open(url).ok(); - crappy_poller(urls.get("credentials_url").unwrap(), &s.cb_sink()); + auth_poller(urls.get("credentials_url").unwrap(), &s.cb_sink()); s.pop_layer(); s.add_layer(login_view) }) @@ -80,7 +80,7 @@ pub fn create_credentials(path: &Path) -> Result { } // TODO: better with futures? -fn crappy_poller(url: &str, app_sink: &CbSink) { +fn auth_poller(url: &str, app_sink: &CbSink) { let app_sink = app_sink.clone(); let url = url.to_string(); std::thread::spawn(move || {