From a52b8882bcb188ca9a1da94d6dd3db4b76c53bc2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 10 Sep 2024 05:40:18 +0300 Subject: [PATCH] update page data refresh --- src/app/browser/main/tab/page.cpp | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/app/browser/main/tab/page.cpp b/src/app/browser/main/tab/page.cpp index 0287b48d..88299079 100644 --- a/src/app/browser/main/tab/page.cpp +++ b/src/app/browser/main/tab/page.cpp @@ -185,18 +185,30 @@ void Page::navigation_update( else { - mime = MIME::TEXT_PLAIN; + mime = MIME::UNDEFINED; - pageContent->set_text_plain( - _("MIME type not supported") + title = _("Oops"); + subtitle = _("MIME type not supported"); + + pageContent->set_text_plain( // @TODO + subtitle ); } } else { - pageContent->set_text_plain( - _("Could not open page") + mime = MIME::UNDEFINED; + + title = _("Oops"); + + subtitle = Glib::ustring::sprintf( + _("Response code %s not supported"), + meta[1] + ); + + pageContent->set_text_plain( // @TODO + subtitle ); }