Skip to content

Commit

Permalink
changed button labels in list
Browse files Browse the repository at this point in the history
  • Loading branch information
scara1701 committed Dec 7, 2022
1 parent a0b7548 commit 98831ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CtxNotTopmost/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ private async Task DetectingOpenWindows(CancellationToken token)
{
activeWindows.Remove(item);
}
else
{
ActiveWindow a = activeWindows.Where(a => a.wHnd == item.wHnd).FirstOrDefault();
if (a != null)
{
ActiveWindow g = getActiveWindows.Where(a => a.wHnd == item.wHnd).First();
a.Title = $"{g.ProcessName}: {g.Title}";
}
}
}
//});
ActiveWindows = ActiveWindows.OrderBy(w => w.Title).ToList();
Expand Down

0 comments on commit 98831ed

Please sign in to comment.