Skip to content

Commit 2e931dd

Browse files
authored
ux: show registering progress after scanning repositories (#2534)
1 parent d235132 commit 2e931dd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ViewModels/ScanRepositories.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ public override async Task<bool> Sure()
9393
await minDelay;
9494

9595
var normalizedRoot = rootDir.FullName.Replace('\\', '/').TrimEnd('/');
96-
foreach (var f in found)
96+
for (var i = 0; i < found.Count; i++)
9797
{
98+
var f = found[i];
99+
ProgressDescription = $"Registering ({i + 1}/{found.Count}) {f}...";
98100
var parent = new DirectoryInfo(f).Parent!.FullName.Replace('\\', '/').TrimEnd('/');
99101
if (parent.Equals(normalizedRoot, StringComparison.OrdinalIgnoreCase))
100102
{

0 commit comments

Comments
 (0)