Commit a583df81 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix render page when we change settings

parent b688c38d
......@@ -360,6 +360,23 @@ void ArticleViewerWidget::keyPressEvent(QKeyEvent *e)
e->ignore();
}
void ArticleViewerWidget::updateAfterConfigChanged()
{
switch(m_viewMode) {
case NormalView:
if (!m_article.isNull()) {
renderContent(m_normalViewFormatter->formatArticles(QVector<Akregator::Article>() << m_article, ArticleFormatter::ShowIcon));
}
break;
case CombinedView:
slotUpdateCombinedView();
break;
case SummaryView:
slotShowSummary(m_node);
break;
}
}
void ArticleViewerWidget::reload()
{
beginWriting();
......
......@@ -80,6 +80,8 @@ public:
Akregator::ArticleViewerWebEngineWidgetNg *articleViewerWidgetNg() const;
void updateAfterConfigChanged();
public Q_SLOTS:
void slotPrint();
......
......@@ -312,7 +312,7 @@ MainWidget::MainWidget(Part *part, QWidget *parent, ActionManagerImpl *actionMan
void MainWidget::slotSettingsChanged()
{
m_tabWidget->slotSettingsChanged();
m_articleViewer->reload();
m_articleViewer->updateAfterConfigChanged();
}
void MainWidget::slotOnShutdown()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment