1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +00:00

HackStudio: Add a simple "open files" view

Instead of files disappearing after you switch to something else,
we now keep track of them in a little ListView below the project tree.

You can return to any previously opened file by activating it in the
open files list. :^)
This commit is contained in:
Andreas Kling 2020-10-26 12:13:32 +01:00
parent 76a2c6e44d
commit 333ab53b8d
4 changed files with 43 additions and 12 deletions

View file

@ -291,7 +291,7 @@ bool Project::save()
return true;
}
ProjectFile* Project::get_file(const String& filename)
RefPtr<ProjectFile> Project::get_file(const String& filename)
{
for (auto& file : m_files) {
if (LexicalPath(file.name()).string() == LexicalPath(filename).string())