Fixed some issues with syncshell saving, fetching of tags and spacing issues. Added button for rename/select/remove.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user