From b69b206c6ec3082fe9fd2ac3ba019697878fe1e7 Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Wed, 5 Jan 2022 00:57:59 +0100 Subject: [PATCH] Fixed MachineList Crash if not connected to server --- Borepin/Borepin/Base/ConnectionModelBase.cs | 4 ++ Borepin/Borepin/Page/MachineListPage.xaml | 42 +++++++++++---------- 2 files changed, 27 insertions(+), 19 deletions(-) diff --git a/Borepin/Borepin/Base/ConnectionModelBase.cs b/Borepin/Borepin/Base/ConnectionModelBase.cs index 4fe5097..e999e7d 100644 --- a/Borepin/Borepin/Base/ConnectionModelBase.cs +++ b/Borepin/Borepin/Base/ConnectionModelBase.cs @@ -51,6 +51,10 @@ namespace Borepin.Base { await _BFFHService.Reconnect().ConfigureAwait(false); } + else if(_BFFHService.CurrentConnection == null) + { + return false; + } return true; } diff --git a/Borepin/Borepin/Page/MachineListPage.xaml b/Borepin/Borepin/Page/MachineListPage.xaml index 44bdf85..8940f48 100644 --- a/Borepin/Borepin/Page/MachineListPage.xaml +++ b/Borepin/Borepin/Page/MachineListPage.xaml @@ -16,26 +16,30 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + + + + -