]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commit - lib/proxmox_login_form.dart
login form: restructure _tryGetAccessDomains
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 25 Apr 2023 11:47:16 +0000 (13:47 +0200)
committerDominik Csapak <d.csapak@proxmox.com>
Tue, 25 Apr 2023 11:47:16 +0000 (13:47 +0200)
commit9e6eb54973d16d28c3b46c43297427c2344123f1
tree371b0097b3fe507de6a1ccc6dd81c4e3240cd716
parent90a3b7652cbec35319c41b754b98ce06b78fef6d
login form: restructure _tryGetAccessDomains

by splitting it into two functions:
_tryLoadAccessDomains
_loadAccessDomains

where the _try variant never throws an exception, but shows a
ConnectionErrorDialog on failure.

this also reorders the code a bit to not need the 'hasPort' variable
at all

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
lib/proxmox_login_form.dart