Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions src/LogExpert.UI/Services/TabControllerService/TabController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -458,15 +458,16 @@ protected virtual void Dispose (bool disposing)
/// Gets all LogWindow instances from the DockPanel's Contents collection.
/// </summary>
/// <returns>Read-only list of all LogWindows in the DockPanel</returns>
public IReadOnlyList<LogWindow> GetAllWindowsFromDockPanel ()
{
return !_initialized || _dockPanel == null
? []
: (IReadOnlyList<LogWindow>)_dockPanel.Contents
.OfType<LogWindow>()
.ToList()
.AsReadOnly();
}
public IReadOnlyList<LogWindow> GetAllWindowsFromDockPanel ()
{
return !_initialized || _dockPanel == null
? []
: _dockPanel.Panes
.Where(pane => pane.DockState == DockState.Document)
.SelectMany(pane => pane.Contents.OfType<LogWindow>())
Comment thread
Hirogen marked this conversation as resolved.
.ToList()
.AsReadOnly();
}

#endregion
}
Loading