Skip to content

Commit

Permalink
Update MainWindowViewModel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
the-database committed Jul 31, 2024
1 parent dc14c7a commit 2c15a18
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions VideoJaNai/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -805,18 +805,21 @@ await Task.Run(async () =>
}
else
{
try
if (Program.WasFirstRun)
{
var installedVsmlrtVersion = new Version(await RunVsmlrtVersion());

if (installedVsmlrtVersion.CompareTo(_pythonService.VsmlrtMinVersion) < 0)
try
{
Directory.Delete(_pythonService.PythonDirectory, true);
await CheckAndExtractBackend();
return;
var installedVsmlrtVersion = new Version(await RunVsmlrtVersion());

if (installedVsmlrtVersion.CompareTo(_pythonService.VsmlrtMinVersion) < 0)
{
Directory.Delete(_pythonService.PythonDirectory, true);
await CheckAndExtractBackend();
return;
}
}
catch (Exception) { }
}
catch (Exception) { }
}

if (!_pythonService.AreModelsInstalled())
Expand Down

0 comments on commit 2c15a18

Please sign in to comment.