1
Fork 0
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:
Linus Groh 2021-05-27 18:08:49 +01:00
parent f930837ed7
commit 209bfbaaa4

View file

@ -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();