mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +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
|
@ -600,8 +600,9 @@ void HexEditorWidget::open_file(String const& filename, NonnullOwnPtr<Core::File
|
|||
{
|
||||
window()->set_modified(false);
|
||||
m_editor->open_file(move(file));
|
||||
set_path(filename.to_byte_string());
|
||||
GUI::Application::the()->set_most_recently_open_file(filename);
|
||||
auto filename_byte_string = filename.to_byte_string();
|
||||
set_path(filename_byte_string);
|
||||
GUI::Application::the()->set_most_recently_open_file(filename_byte_string);
|
||||
}
|
||||
|
||||
bool HexEditorWidget::request_close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue