mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
HackStudio: Remove redundant insertion to m_open_files
previous_open_project_file already exists in m_open_files under the active_file() key.
This commit is contained in:
parent
25a5e59f79
commit
77d462426b
Notes:
sideshowbarker
2024-07-18 18:30:51 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/77d462426bb Pull-request: https://github.com/SerenityOS/serenity/pull/6944 Reviewed-by: https://github.com/alimpfard
@ -223,7 +223,6 @@ bool HackStudioWidget::open_file(const String& full_filename)
|
||||
// Update the scrollbar values of the previous_open_project_file and save them to m_open_files.
|
||||
previous_open_project_file->vertical_scroll_value(current_editor().vertical_scrollbar().value());
|
||||
previous_open_project_file->horizontal_scroll_value(current_editor().horizontal_scrollbar().value());
|
||||
m_open_files.set(active_file(), previous_open_project_file);
|
||||
}
|
||||
|
||||
RefPtr<ProjectFile> new_project_file = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user