Removed syncshelltagfolder, adding new parameters for group folder to support it in there.

This commit is contained in:
CakeAndBanana
2025-09-09 23:19:00 +02:00
parent abe5505734
commit 4cf122934c
4 changed files with 79 additions and 144 deletions

View File

@@ -506,12 +506,11 @@ public class CompactUi : WindowMediatorSubscriberBase
}
if (_configService.Current.GroupUpSyncshells)
drawFolders.Add(new DrawGroupedGroupFolder(groupFolders, _tagHandler, _uiSharedService));
drawFolders.Add(new DrawGroupedGroupFolder(groupFolders, _tagHandler, _uiSharedService, _selectSyncshellForTagUi, _renameSyncshellTagUi, ""));
else
drawFolders.AddRange(groupFolders);
var tags = _tagHandler.GetAllPairTagsSorted();
_logger.LogDebug($"Loading {tags.Count} pair tags");
foreach (var tag in tags)
{
var allTagPairs = ImmutablePairList(allPairs
@@ -523,7 +522,6 @@ public class CompactUi : WindowMediatorSubscriberBase
}
var syncshellTags = _tagHandler.GetAllSyncshellTagsSorted();
_logger.LogDebug($"Loading {syncshellTags.Count} syncshell tags");
foreach (var syncshelltag in syncshellTags)
{
List<IDrawFolder> syncshellFolderTags = [];
@@ -538,7 +536,7 @@ public class CompactUi : WindowMediatorSubscriberBase
if (syncshellFolderTags.Count > 0)
{
drawFolders.Add(new DrawGroupedSyncshellTagFolder(syncshelltag, syncshellFolderTags, _tagHandler, _uiSharedService, _selectSyncshellForTagUi, _renameSyncshellTagUi));
drawFolders.Add(new DrawGroupedGroupFolder(syncshellFolderTags, _tagHandler, _uiSharedService, _selectSyncshellForTagUi, _renameSyncshellTagUi, syncshelltag));
}
}