start 1.11.10

This commit is contained in:
defnotken
2025-09-13 22:51:56 -05:00
parent 14ec282f21
commit bf91dacb6f
3 changed files with 11 additions and 2 deletions

View File

@@ -181,6 +181,8 @@ public sealed class FileCacheManager : IHostedService
try try
{ {
var cleanedPaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); var cleanedPaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
var seenCleaned = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
foreach (var p in paths) foreach (var p in paths)
{ {
var cleaned = p.Replace("/", "\\", StringComparison.OrdinalIgnoreCase) var cleaned = p.Replace("/", "\\", StringComparison.OrdinalIgnoreCase)

View File

@@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<Authors></Authors> <Authors></Authors>
<Company></Company> <Company></Company>
<Version>1.11.9</Version> <Version>1.11.10</Version>
<Description></Description> <Description></Description>
<Copyright></Copyright> <Copyright></Copyright>
<PackageProjectUrl>https://github.com/Light-Public-Syncshells/LightlessClient</PackageProjectUrl> <PackageProjectUrl>https://github.com/Light-Public-Syncshells/LightlessClient</PackageProjectUrl>

View File

@@ -831,9 +831,16 @@ public class SettingsUi : WindowMediatorSubscriberBase
_ = Task.Run(() => _ = Task.Run(() =>
{ {
foreach (var file in Directory.GetFiles(_configService.Current.CacheFolder)) foreach (var file in Directory.GetFiles(_configService.Current.CacheFolder))
{
try
{ {
File.Delete(file); File.Delete(file);
} }
catch (IOException ex)
{
_logger.LogWarning(ex, $"Could not delete file {file} because it is in use.");
}
}
}); });
} }
UiSharedService.AttachToolTip("You normally do not need to do this. THIS IS NOT SOMETHING YOU SHOULD BE DOING TO TRY TO FIX SYNC ISSUES." + Environment.NewLine UiSharedService.AttachToolTip("You normally do not need to do this. THIS IS NOT SOMETHING YOU SHOULD BE DOING TO TRY TO FIX SYNC ISSUES." + Environment.NewLine