mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-13 07:11:56 +01:00
Fixed MachineList Crash if not connected to server
This commit is contained in:
parent
e089d8ab39
commit
b69b206c6e
@ -51,6 +51,10 @@ namespace Borepin.Base
|
|||||||
{
|
{
|
||||||
await _BFFHService.Reconnect().ConfigureAwait(false);
|
await _BFFHService.Reconnect().ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
else if(_BFFHService.CurrentConnection == null)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
<ActivityIndicator IsRunning="{Binding IsBusy}"></ActivityIndicator>
|
<ActivityIndicator IsRunning="{Binding IsBusy}"></ActivityIndicator>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
<StackLayout IsVisible="{Binding IsBusy, Converter={StaticResource InvertBoolConverter}}">
|
<StackLayout IsVisible="{Binding IsBusy, Converter={StaticResource InvertBoolConverter}}">
|
||||||
|
<StackLayout IsVisible="{Binding IsConnected}">
|
||||||
<Button Text="Scan QR-Code" Command="{Binding ScanCodeCommand}" Style="{StaticResource Style_Button_Primary}">
|
<Button Text="Scan QR-Code" Command="{Binding ScanCodeCommand}" Style="{StaticResource Style_Button_Primary}">
|
||||||
<Button.IsVisible>
|
<Button.IsVisible>
|
||||||
<OnPlatform x:TypeArguments="x:Boolean"
|
<OnPlatform x:TypeArguments="x:Boolean"
|
||||||
@ -35,7 +36,10 @@
|
|||||||
</ListView>
|
</ListView>
|
||||||
</RefreshView>
|
</RefreshView>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
<Label Text="Please connect to Server" IsVisible="{Binding IsConnected, Converter={StaticResource InvertBoolConverter}}"></Label>
|
<StackLayout IsVisible="{Binding IsConnected, Converter={StaticResource InvertBoolConverter}}">
|
||||||
|
<Label Text="Please connect to Server" ></Label>
|
||||||
|
</StackLayout>
|
||||||
|
</StackLayout>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</ContentPage.Content>
|
</ContentPage.Content>
|
||||||
</ContentPage>
|
</ContentPage>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user