This commit is contained in:
2021-12-16 22:22:36 -06:00
parent 4f675644ee
commit da04debec4
2 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ class W3DHub
flow(width: 1.0) do flow(width: 1.0) do
tagline "Username", width: 0.25, text_align: :right 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 end
flow(width: 1.0) do flow(width: 1.0) do
@@ -94,6 +94,7 @@ class W3DHub
def depopulate_account_info def depopulate_account_info
Store.settings[:account][:refresh_token] = nil Store.settings[:account][:refresh_token] = nil
Store.settings.save_settings Store.settings.save_settings
Store.account = nil
@host.instance_variable_get(:"@account_container").clear do @host.instance_variable_get(:"@account_container").clear do
stack(width: 0.7, height: 1.0) do stack(width: 0.7, height: 1.0) do

View File

@@ -19,7 +19,7 @@ class W3DHub
stack(width: 1.0, height: 0.78, padding: 16) do stack(width: 1.0, height: 0.78, padding: 16) do
para @options[:message], width: 1.0 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 end
flow(width: 1.0, height: 0.1, padding: 8) do flow(width: 1.0, height: 0.1, padding: 8) do