From da04debec49adb32ab4801f913ae70c4f50c2c5d Mon Sep 17 00:00:00 2001 From: cyberarm Date: Thu, 16 Dec 2021 22:22:36 -0600 Subject: [PATCH] Fixes --- lib/pages/login.rb | 3 ++- lib/states/prompt_dialog.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pages/login.rb b/lib/pages/login.rb index af4c2e6..68826a8 100644 --- a/lib/pages/login.rb +++ b/lib/pages/login.rb @@ -17,7 +17,7 @@ class W3DHub flow(width: 1.0) do tagline "Username", width: 0.25, text_align: :right - @username = edit_line "", width: 0.75, focus: true + @username = edit_line "", width: 0.75, autofocus: true, focus: true end flow(width: 1.0) do @@ -94,6 +94,7 @@ class W3DHub def depopulate_account_info Store.settings[:account][:refresh_token] = nil Store.settings.save_settings + Store.account = nil @host.instance_variable_get(:"@account_container").clear do stack(width: 0.7, height: 1.0) do diff --git a/lib/states/prompt_dialog.rb b/lib/states/prompt_dialog.rb index 1252850..a985bd6 100644 --- a/lib/states/prompt_dialog.rb +++ b/lib/states/prompt_dialog.rb @@ -19,7 +19,7 @@ class W3DHub stack(width: 1.0, height: 0.78, padding: 16) do para @options[:message], width: 1.0 - @prompt_entry = edit_line @options[:prefill].to_s, margin_top: 24, width: 1.0, focus: true, type: @options[:input_type] == :password ? :password : :text + @prompt_entry = edit_line @options[:prefill].to_s, margin_top: 24, width: 1.0, autofocus: true, focus: true, type: @options[:input_type] == :password ? :password : :text end flow(width: 1.0, height: 0.1, padding: 8) do