Fix some bugs

This commit is contained in:
pizzaboxer 2024-10-12 18:21:14 +01:00
parent aac6ec3d4c
commit ba0b5e85be
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
2 changed files with 8 additions and 3 deletions

View File

@ -349,9 +349,14 @@ namespace Bloxstrap
{ {
startEvent.Reset(); startEvent.Reset();
string rbxLogDir = Path.Combine(Paths.LocalAppData, "Roblox\\logs");
if (!Directory.Exists(rbxLogDir))
Directory.CreateDirectory(rbxLogDir);
var logWatcher = new FileSystemWatcher() var logWatcher = new FileSystemWatcher()
{ {
Path = Path.Combine(Paths.LocalAppData, "Roblox\\logs"), Path = rbxLogDir,
Filter = "*.log", Filter = "*.log",
EnableRaisingEvents = true EnableRaisingEvents = true
}; };

View File

@ -36,7 +36,7 @@ namespace Bloxstrap.UI.ViewModels.ContextMenu
if (entries.Any()) if (entries.Any())
{ {
string universeIds = String.Join(',', entries.GroupBy(x => x.UniverseId).Select(x => x.First())); string universeIds = String.Join(',', entries.Select(x => x.UniverseId).Distinct());
try try
{ {