Fixed some issues with syncshell saving, fetching of tags and spacing issues. Added button for rename/select/remove.

This commit is contained in:
CakeAndBanana
2025-09-09 06:10:08 +02:00
parent 08e3b19f41
commit 099cc1b8dc
6 changed files with 98 additions and 53 deletions

View File

@@ -427,7 +427,7 @@ public class ServerConfigurationManager
internal HashSet<string> GetNamesForSyncshellTag(string tag)
{
return CurrentPairTagStorage().UidServerPairedUserTags.Where(p => p.Value.Contains(tag, StringComparer.Ordinal)).Select(p => p.Key).ToHashSet(StringComparer.Ordinal);
return CurrentSyncshellTagStorage().SyncshellPairedTags.Where(p => p.Value.Contains(tag, StringComparer.Ordinal)).Select(p => p.Key).ToHashSet(StringComparer.Ordinal);
}
internal bool HasPairTags(string uid)
@@ -520,7 +520,7 @@ public class ServerConfigurationManager
RenameTag(CurrentSyncshellTagStorage().SyncshellPairedTags, CurrentSyncshellTagStorage().ServerAvailableSyncshellTags, oldName, newName);
}
internal static void RenameTag(Dictionary<string, List<string>> tags, HashSet<string> storage, string oldName, string newName)
internal void RenameTag(Dictionary<string, List<string>> tags, HashSet<string> storage, string oldName, string newName)
{
storage.Remove(oldName);
storage.Add(newName);
@@ -529,6 +529,7 @@ public class ServerConfigurationManager
if (existingTags.Remove(oldName))
existingTags.Add(newName);
}
_lightlessMediator.Publish(new RefreshUiMessage());
}
internal void SaveNotes()