Skip to content

Commit

Permalink
Added warning for UI never being opened
Browse files Browse the repository at this point in the history
  • Loading branch information
Piranha91 committed Nov 27, 2023
1 parent 320edbe commit 1d07b03
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SynthEBD/Patcher/Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ public Patcher(IOutputEnvironmentStateProvider environmentProvider, PatcherState
public async Task RunPatcher()
{
// General pre-patching tasks:
if (!_patcherState.GeneralSettings.bUIopened)
{
_logger.LogMessage("====SynthEBD UI has never been opened. SynthEBD will not do anything until the UI is configured====");
}

if (_paths.OutputDataFolder.IsNullOrEmpty())
{
if (_patcherState.GeneralSettings.OutputDataFolder.IsNullOrEmpty())
Expand Down
1 change: 1 addition & 0 deletions SynthEBD/Settings/Settings_General/Settings_General.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public class Settings_General
public bool bShowTroubleshootingSettings { get; set; } = false;
public bool bTroubleShootingWarningDisplayed { get; set; } = false;
public bool bHeadPartWarningDisplayed { get; set; } = false;
public bool bUIopened { get; set; } = false;
}

public enum BodyShapeSelectionMode
Expand Down
2 changes: 2 additions & 0 deletions SynthEBD/Settings/Settings_General/VM_Settings_General.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ public Settings_General DumpViewModelToModel()
model.bShowTroubleshootingSettings = bShowTroubleshootingSettings;
model.bTroubleShootingWarningDisplayed = _bTroubleshootingWarningDisplayed;
model.bHeadPartWarningDisplayed = _bHeadPartWarningDisplayed;

model.bUIopened = true;
return model;
}

Expand Down

0 comments on commit 1d07b03

Please sign in to comment.