Browse Source

move index to after library setup

pull/55/head
JT 1 year ago
parent
commit
4079276375
  1. 1
      StabilityMatrix.Avalonia/App.axaml.cs
  2. 3
      StabilityMatrix.Avalonia/ViewModels/MainWindowViewModel.cs

1
StabilityMatrix.Avalonia/App.axaml.cs

@ -104,7 +104,6 @@ public sealed class App : Application
var settingsManager = Services.GetRequiredService<ISettingsManager>();
settingsManager.TryFindLibrary();
settingsManager.IndexCheckpoints();
Services.GetRequiredService<ProgressManagerViewModel>().StartEventListener();
}

3
StabilityMatrix.Avalonia/ViewModels/MainWindowViewModel.cs

@ -55,6 +55,9 @@ public partial class MainWindowViewModel : ViewModelBase
await EnsureDataDirectory();
// Index checkpoints if we dont have
settingsManager.IndexCheckpoints();
if (!settingsManager.Settings.InstalledPackages.Any())
{
var viewModel = dialogFactory.Get<OneClickInstallViewModel>();

Loading…
Cancel
Save