sw/source/ui/dialog/wordcountdialog.cxx | 4 ++-- vcl/jsdialog/enabled.cxx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
New commits: commit a4e8c663b613fcd2ec26211faedb6e703f27806b Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Tue Apr 4 14:52:26 2023 +0100 Commit: Pranam Lashkari <lpra...@collabora.com> CommitDate: Wed May 3 20:46:27 2023 +0200 jsdialog: enabled word count dialog (writer) set mobile fields visibility only with mobile phones Change-Id: I5680effe9df5de01221bcf52e339490aa5dd5a6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150024 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> (cherry picked from commit e7bcf7aa95a31dcefc82f56b23a36424353016c3) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151280 Tested-by: Jenkins Reviewed-by: Pranam Lashkari <lpra...@collabora.com> diff --git a/sw/source/ui/dialog/wordcountdialog.cxx b/sw/source/ui/dialog/wordcountdialog.cxx index 6dbd3c780ac4..a96e1c50b3be 100644 --- a/sw/source/ui/dialog/wordcountdialog.cxx +++ b/sw/source/ui/dialog/wordcountdialog.cxx @@ -87,7 +87,7 @@ void SwWordCountFloatDlg::showCJK(bool bShowCJK) { m_xCurrentCjkcharsFT->set_visible(bShowCJK); m_xDocCjkcharsFT->set_visible(bShowCJK); - if (m_xCjkcharsLabelFT2) + if (IS_MOBILE_PHONE && m_xCjkcharsLabelFT2) m_xCjkcharsLabelFT2->set_visible(bShowCJK); m_xCjkcharsLabelFT->set_visible(bShowCJK); } @@ -96,7 +96,7 @@ void SwWordCountFloatDlg::showStandardizedPages(bool bShowStandardizedPages) { m_xCurrentStandardizedPagesFT->set_visible(bShowStandardizedPages); m_xDocStandardizedPagesFT->set_visible(bShowStandardizedPages); - if (m_xStandardizedPagesLabelFT2) + if (IS_MOBILE_PHONE && m_xStandardizedPagesLabelFT2) m_xStandardizedPagesLabelFT2->set_visible(bShowStandardizedPages); m_xStandardizedPagesLabelFT->set_visible(bShowStandardizedPages); } diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx index 0ed9c299bc00..86528c4c6ca8 100644 --- a/vcl/jsdialog/enabled.cxx +++ b/vcl/jsdialog/enabled.cxx @@ -198,6 +198,7 @@ bool isBuilderEnabled(std::u16string_view rUIFile, bool bMobile) || rUIFile == u"modules/swriter/ui/tocstylespage.ui" || rUIFile == u"modules/swriter/ui/translationdialog.ui" || rUIFile == u"modules/swriter/ui/watermarkdialog.ui" + || rUIFile == u"modules/swriter/ui/wordcount.ui" // sfx || rUIFile == u"sfx/ui/cmisinfopage.ui" || rUIFile == u"sfx/ui/custominfopage.ui"