mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +00:00
PDFViewer: Show app name as "PDF Viewer" when a file is loaded
This commit is contained in:
@@ -93,7 +93,7 @@ void PDFViewerWidget::create_toolbar()
|
||||
|
||||
void PDFViewerWidget::open_file(const String& path)
|
||||
{
|
||||
window()->set_title(String::formatted("{} - PDFViewer", path));
|
||||
window()->set_title(String::formatted("{} - PDF Viewer", path));
|
||||
auto file_result = Core::File::open(path, Core::OpenMode::ReadOnly);
|
||||
VERIFY(!file_result.is_error());
|
||||
m_buffer = file_result.value()->read_all();
|
||||
|
||||
Reference in New Issue
Block a user