Skip to content

Commit

Permalink
Add DisableAutosaveDetailScan setting
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Jan 9, 2023
1 parent ae5807f commit b86f07c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Src/RandomizerTMF.Logic/Services/RandomizerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public interface IRandomizerConfig
int ReplayParseFailDelayMs { get; set; }
int ReplayParseFailRetries { get; set; }
RandomizerRules Rules { get; set; }
bool DisableAutosaveDetailScan { get; set; }

void Save();
}
Expand All @@ -39,6 +40,7 @@ public class RandomizerConfig : IRandomizerConfig

public int ReplayParseFailRetries { get; set; } = 10;
public int ReplayParseFailDelayMs { get; set; } = 50;
public bool DisableAutosaveDetailScan { get; set; } = false;

public RandomizerConfig()
{
Expand Down
2 changes: 1 addition & 1 deletion Src/RandomizerTMF/ViewModels/DashboardWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private async void Opened(object? sender, EventArgs e)

var anythingChanged = await ScanAutosavesAsync();

if (anythingChanged)
if (anythingChanged && !config.DisableAutosaveDetailScan)
{
await UpdateAutosavesWithFullParseAsync();
}
Expand Down

0 comments on commit b86f07c

Please sign in to comment.