Resolves #350 Fix displayed hostname

This commit is contained in:
estevez-dev 2019-04-05 11:57:58 +03:00
parent b2773635f5
commit ccd7774931
2 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,6 @@ class HomeAssistant {
HomeAssistantUI ui; HomeAssistantUI ui;
Map _instanceConfig = {}; Map _instanceConfig = {};
String _userName; String _userName;
String hostname;
HSVColor savedColor; HSVColor savedColor;
Map _rawLovelaceData; Map _rawLovelaceData;

View File

@ -371,7 +371,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
menuItems.add( menuItems.add(
UserAccountsDrawerHeader( UserAccountsDrawerHeader(
accountName: Text(widget.homeAssistant.userName), accountName: Text(widget.homeAssistant.userName),
accountEmail: Text(widget.homeAssistant.hostname ?? "Not configured"), accountEmail: Text(Connection().displayHostname ?? "Not configured"),
/*onDetailsPressed: () { /*onDetailsPressed: () {
setState(() { setState(() {
_accountMenuExpanded = !_accountMenuExpanded; _accountMenuExpanded = !_accountMenuExpanded;