Browse Source

re-enable bugsnag auto notification (#1034)

pull/1035/head
Jason Dove 4 years ago committed by GitHub
parent
commit
e388f81e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ErsatzTV/ErsatzTV.csproj
  2. 4
      ErsatzTV/Pages/MultiSelectBase.cs
  3. 4
      ErsatzTV/Startup.cs

2
ErsatzTV/ErsatzTV.csproj

@ -70,7 +70,7 @@
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="MudBlazor" Version="6.0.17" /> <PackageReference Include="MudBlazor" Version="6.1.3-dev.1" />
<PackageReference Include="NaturalSort.Extension" Version="4.0.0" /> <PackageReference Include="NaturalSort.Extension" Version="4.0.0" />
<PackageReference Include="PPioli.FluentValidation.Blazor" Version="11.1.0" /> <PackageReference Include="PPioli.FluentValidation.Blazor" Version="11.1.0" />
<PackageReference Include="Refit.HttpClientFactory" Version="6.3.2" /> <PackageReference Include="Refit.HttpClientFactory" Version="6.3.2" />

4
ErsatzTV/Pages/MultiSelectBase.cs

@ -112,7 +112,7 @@ public class MultiSelectBase<T> : FragmentNavigationBase
{ { "EntityType", count.ToString() }, { "EntityName", entityName } }; { { "EntityType", count.ToString() }, { "EntityName", entityName } };
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall }; var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall };
IDialogReference dialog = Dialog.Show<AddToCollectionDialog>("Add To Collection", parameters, options); IDialogReference dialog = await Dialog.ShowAsync<AddToCollectionDialog>("Add To Collection", parameters, options);
DialogResult result = await dialog.Result; DialogResult result = await dialog.Result;
if (!result.Cancelled && result.Data is MediaCollectionViewModel collection) if (!result.Cancelled && result.Data is MediaCollectionViewModel collection)
{ {
@ -150,7 +150,7 @@ public class MultiSelectBase<T> : FragmentNavigationBase
{ { "EntityType", SelectedItems.Count.ToString() }, { "EntityName", "selected items" } }; { { "EntityType", SelectedItems.Count.ToString() }, { "EntityName", "selected items" } };
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall }; var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall };
IDialogReference dialog = Dialog.Show<RemoveFromCollectionDialog>( IDialogReference dialog = await Dialog.ShowAsync<RemoveFromCollectionDialog>(
"Remove From Collection", "Remove From Collection",
parameters, parameters,
options); options);

4
ErsatzTV/Startup.cs

@ -107,11 +107,11 @@ public class Startup
configuration.AppVersion = Assembly.GetEntryAssembly() configuration.AppVersion = Assembly.GetEntryAssembly()
?.GetCustomAttribute<AssemblyInformationalVersionAttribute>() ?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
?.InformationalVersion ?? "unknown"; ?.InformationalVersion ?? "unknown";
configuration.AutoNotify = false; configuration.AutoNotify = true;
configuration.NotifyReleaseStages = new[] { "public", "develop" }; configuration.NotifyReleaseStages = new[] { "public", "develop" };
#if DEBUG #if DEBUG || DEBUG_NO_SYNC
configuration.ReleaseStage = "develop"; configuration.ReleaseStage = "develop";
#else #else
// effectively "disable" by tweaking app config // effectively "disable" by tweaking app config

Loading…
Cancel
Save