mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
ImageViewer: Add list of recently open files to the File menu :^)
This commit is contained in:
parent
5f23515796
commit
d0ba5f2ed7
3 changed files with 15 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <LibCore/MappedFile.h>
|
||||
#include <LibCore/MimeData.h>
|
||||
#include <LibCore/Timer.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/Orientation.h>
|
||||
|
@ -196,6 +197,7 @@ void ViewWidget::load_from_file(DeprecatedString const& path)
|
|||
}
|
||||
|
||||
m_path = Core::DeprecatedFile::real_path_for(path);
|
||||
GUI::Application::the()->set_most_recently_open_file(String::from_utf8(path).release_value_but_fixme_should_propagate_errors());
|
||||
reset_view();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue