diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-23 12:28:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-24 13:17:39 +0200 |
commit | cde00e11db2f273f4027780a4f66e40ec7c598e1 (patch) | |
tree | 56b7eb2e7e47ae0ecaee80b6c8b5867312dd22da /cui/source | |
parent | e271fce82e16359394fdeb818c2ec25a07532a8d (diff) |
use officecfg to retrieve offlinehelppopup
Change-Id: I2441dc1c508ceb4805a98b7e45863bbda4af0b18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119415
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 04d2683c921e..9194219d2056 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -219,7 +219,11 @@ bool OfaMiscTabPage::FillItemSet( SfxItemSet* rSet ) SvtHelpOptions aHelpOptions; if ( m_xPopUpNoHelpCB->get_state_changed_from_saved() ) - aHelpOptions.SetOfflineHelpPopUp( m_xPopUpNoHelpCB->get_active() ); + { + auto xChanges = comphelper::ConfigurationChanges::create(); + officecfg::Office::Common::Help::BuiltInHelpNotInstalledPopUp::set(m_xPopUpNoHelpCB->get_active(), xChanges); + xChanges->commit(); + } if ( m_xExtHelpCB->get_state_changed_from_saved() ) aHelpOptions.SetExtendedHelp( m_xExtHelpCB->get_active() ); @@ -286,7 +290,7 @@ void OfaMiscTabPage::Reset( const SfxItemSet* rSet ) SvtHelpOptions aHelpOptions; m_xExtHelpCB->set_active( aHelpOptions.IsHelpTips() && aHelpOptions.IsExtendedHelp() ); m_xExtHelpCB->save_state(); - m_xPopUpNoHelpCB->set_active( aHelpOptions.IsOfflineHelpPopUp() ); + m_xPopUpNoHelpCB->set_active( officecfg::Office::Common::Help::BuiltInHelpNotInstalledPopUp::get() ); m_xPopUpNoHelpCB->save_state(); m_xShowTipOfTheDay->set_active( officecfg::Office::Common::Misc::ShowTipOfTheDay::get() ); m_xShowTipOfTheDay->save_state(); |