mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:28:11 +00:00
PDFViewer: Show app name as "PDF Viewer" when a file is loaded
This commit is contained in:
parent
f930837ed7
commit
209bfbaaa4
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue