cleanup
This commit is contained in:
@ -44,8 +44,8 @@
|
||||
<Reference Include="Autofac, Version=4.8.1.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Autofac.4.8.1\lib\net45\Autofac.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MaterialDesignColors, Version=1.1.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MaterialDesignColors.1.1.2\lib\net45\MaterialDesignColors.dll</HintPath>
|
||||
<Reference Include="MaterialDesignColors, Version=1.1.3.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MaterialDesignColors.1.1.3\lib\net45\MaterialDesignColors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MaterialDesignThemes.Wpf, Version=2.4.1.1101, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MaterialDesignThemes.2.4.1.1101\lib\net45\MaterialDesignThemes.Wpf.dll</HintPath>
|
||||
|
@ -13,7 +13,7 @@ namespace Example
|
||||
public class MainWindowViewModel : BindableBase, IDisposable
|
||||
{
|
||||
private bool _showRestartAppDialog;
|
||||
private UpdateManager _updateManager;
|
||||
private readonly UpdateManager _updateManager;
|
||||
|
||||
public MainWindowViewModel()
|
||||
{
|
||||
@ -32,13 +32,12 @@ namespace Example
|
||||
ShowRestartAppDialog = false;
|
||||
}
|
||||
|
||||
|
||||
private async Task UpdateAsync(string startup)
|
||||
{
|
||||
var silent = bool.Parse(startup);
|
||||
try
|
||||
{
|
||||
var releases = (await _updateManager.CheckForUpdateAsync()).ToList();
|
||||
var releases = (await _updateManager.CheckForUpdateAsync().ConfigureAwait(false)).ToList();
|
||||
if (releases.Any())
|
||||
{
|
||||
MessageQueue.Enqueue("Update available", "Update now", ActionHandler);
|
||||
@ -61,8 +60,7 @@ namespace Example
|
||||
{
|
||||
if (await _updateManager.UpdateAppAsync().ConfigureAwait(false))
|
||||
{
|
||||
ShowRestartAppDialog = true;
|
||||
//manager.RestartApp();
|
||||
ShowRestartAppDialog = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,6 @@ using System.Windows;
|
||||
|
||||
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
||||
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
@ -38,7 +37,6 @@ using System.Windows;
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
||||
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
|
@ -2,7 +2,7 @@
|
||||
<packages>
|
||||
<package id="Autofac" version="4.8.1" targetFramework="net45" />
|
||||
<package id="CommonServiceLocator" version="1.3" targetFramework="net45" />
|
||||
<package id="MaterialDesignColors" version="1.1.2" targetFramework="net45" />
|
||||
<package id="MaterialDesignColors" version="1.1.3" targetFramework="net45" />
|
||||
<package id="MaterialDesignThemes" version="2.4.1.1101" targetFramework="net45" />
|
||||
<package id="Prism.Autofac" version="6.3.0" targetFramework="net45" />
|
||||
<package id="Prism.Core" version="6.3.0" targetFramework="net45" />
|
||||
|
Reference in New Issue
Block a user