Skip to content

Commit

Permalink
Merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperJMN committed Feb 25, 2019
2 parents c69d6c0 + 51838e3 commit 7b11d28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Source/Deployer.Lumia.Gui/ViewModels/DeploymentViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Threading.Tasks;
using Deployer.Gui.Common;
using ReactiveUI;
using Serilog;

namespace Deployer.Lumia.Gui.ViewModels
{
Expand Down Expand Up @@ -53,6 +54,8 @@ private async Task Deploy()

await deployer.Deploy();

Log.Information("Deployment successful");

await uiServices.Dialog.PickOptions(Resources.WindowsDeployedSuccessfully, new List<Option>()
{
new Option("Close")
Expand Down
3 changes: 3 additions & 0 deletions Source/Deployer.Lumia.Gui/ViewModels/DualBootViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Threading.Tasks;
using Deployer.Gui.Common;
using ReactiveUI;
using Serilog;

namespace Deployer.Lumia.Gui.ViewModels
{
Expand Down Expand Up @@ -91,11 +92,13 @@ public bool IsUpdated
private async Task EnableDualBoot()
{
await phone.EnableDualBoot(true);
Log.Information("Dual Boot enabled");
}

private async Task DisableDualBoot()
{
await phone.EnableDualBoot(false);
Log.Information("Dual Boot disabled");
}

private async Task<DualBootStatus> GetStatus()
Expand Down
5 changes: 2 additions & 3 deletions Source/Deployer.Lumia/WoaDeployer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public async Task Deploy()
var phoneModel = await phone.GetModel();
Log.Verbose("{Model detected}", phoneModel);
var path = dict[phoneModel];

Log.Information("Starting deployment");
await scriptRunner.Run(parser.Parse(File.ReadAllText(path)));

await scriptRunner.Run(parser.Parse(File.ReadAllText(path)));
}

public async Task InstallGpu()
Expand Down

0 comments on commit 7b11d28

Please sign in to comment.