mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
LibGUI+Userland: Take ByteString in set_most_recently_open_file()
This commit is contained in:
parent
d30f13a88d
commit
9657f4cabb
11 changed files with 24 additions and 24 deletions
|
@ -371,7 +371,7 @@ void Application::update_recent_file_actions()
|
|||
m_recent_file_actions.last()->set_visible(number_of_recently_open_files == 0);
|
||||
}
|
||||
|
||||
void Application::set_most_recently_open_file(String new_path)
|
||||
void Application::set_most_recently_open_file(ByteString new_path)
|
||||
{
|
||||
Vector<ByteString> new_recent_files_list;
|
||||
|
||||
|
@ -386,7 +386,7 @@ void Application::set_most_recently_open_file(String new_path)
|
|||
return existing_path.view() == new_path;
|
||||
});
|
||||
|
||||
new_recent_files_list.prepend(new_path.to_byte_string());
|
||||
new_recent_files_list.prepend(new_path);
|
||||
|
||||
for (size_t i = 0; i < max_recently_open_files(); ++i) {
|
||||
auto& path = new_recent_files_list[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue