Fixed review comments

This commit is contained in:
Mbucari 2023-02-28 07:42:26 -07:00
parent 429aa603f5
commit 5c45802391
4 changed files with 8 additions and 4 deletions

View File

@ -24,7 +24,7 @@ namespace LibationAvalonia.Views
upgrader.DownloadBegin += async (_, _) => await Dispatcher.UIThread.InvokeAsync(() => setProgressVisible(true));
upgrader.DownloadCompleted += async (_, _) => await Dispatcher.UIThread.InvokeAsync(() => setProgressVisible(false));
Opened += async (_, _) => await upgrader.CheForUpgradeAsync(upgradeAvailable);
Opened += async (_, _) => await upgrader.CheckForUpgradeAsync(upgradeAvailable);
#endif
}

View File

@ -40,7 +40,7 @@ namespace LibationUiBase
public event EventHandler<DownloadProgress> DownloadProgress;
public event EventHandler<bool> DownloadCompleted;
public async Task CheForUpgradeAsync(Func<UpgradeEventArgs,Task> upgradeAvailableHandler)
public async Task CheckForUpgradeAsync(Func<UpgradeEventArgs,Task> upgradeAvailableHandler)
{
try
{

View File

@ -25,7 +25,7 @@ namespace LibationWinForms
upgrader.DownloadBegin += (_, _) => Invoke(() => setProgressVisible(true));
upgrader.DownloadCompleted += (_, _) => Invoke(() => setProgressVisible(false));
Shown += async (_, _) => await upgrader.CheForUpgradeAsync(upgradeAvailable);
Shown += async (_, _) => await upgrader.CheckForUpgradeAsync(upgradeAvailable);
#endif
}

View File

@ -3,6 +3,7 @@ using System.Diagnostics;
using LibationFileManager;
using System.IO;
using System;
using Dinah.Core;
namespace WindowsConfigApp
{
@ -42,7 +43,10 @@ namespace WindowsConfigApp
File.Copy("ZipExtractor.exe", zipExtractor, overwrite: true);
RunAsRoot(zipExtractor, $"--input \"{upgradeBundle}\" --output \"{thisDir}\" --executable \"{thisExe}\"");
RunAsRoot(zipExtractor,
$"--input {upgradeBundle.SurroundWithQuotes()} " +
$"--output {thisDir.SurroundWithQuotes()} " +
$"--executable {thisExe.SurroundWithQuotes()}");
}
public Process RunAsRoot(string exe, string args)