Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
neilenns committed Jan 15, 2025
1 parent bf0fc4d commit 965636c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion UI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using MobiFlight.InputConfig;
using Newtonsoft.Json;
using System.IO;
using FSUIPC;

namespace MobiFlight.UI
{
Expand Down Expand Up @@ -2255,11 +2256,19 @@ private void InstallWasmModule()
{
Update2020Successful = HandleWasmInstall(updater, updater.CommunityFolder, "2020");
}
else
{
Log.Instance.log($"WASM module for MSFS2020 is already up-to-date.", LogSeverity.Info);
}

if (Is2024Different)
{
Update2024Successful = HandleWasmInstall(updater, updater.CommunityFolder2024, "2024");
}
else
{
Log.Instance.log($"WASM module for MSFS2024 is already up-to-date.", LogSeverity.Info);
}

// If either update is successful then show the success dialog.
if (Update2020Successful || Update2024Successful)
Expand Down Expand Up @@ -2290,7 +2299,7 @@ private void InstallWasmModule()
/// <param name="communityFolder">The path to the community folder</param>
/// <param name="msfsVersion">The version of MSFS, either "2020" or "2024"</param>
/// <returns></returns>
private static bool HandleWasmInstall(WasmModuleUpdater updater,string communityFolder, string msfsVersion)
private static bool HandleWasmInstall(WasmModuleUpdater updater, string communityFolder, string msfsVersion)
{
if (String.IsNullOrEmpty(communityFolder))
{
Expand Down

0 comments on commit 965636c

Please sign in to comment.