mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
HackStudio: Add HackStudio::for_each_open_file
This commit is contained in:
@@ -1484,4 +1484,11 @@ void HackStudioWidget::open_coredump(String const& coredump_path)
|
||||
}
|
||||
}
|
||||
|
||||
void HackStudioWidget::for_each_open_file(Function<void(ProjectFile const&)> func)
|
||||
{
|
||||
for (auto& open_file : m_open_files) {
|
||||
func(*open_file.value);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user