cui/source/options/appearance.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 36aed19e5e96b903f95d2cc782454c9d601f0b94 Author: Sahil Gautam <sahil.gautam.ext...@allotropia.de> AuthorDate: Sun Apr 20 23:12:45 2025 +0530 Commit: Sahil Gautam <sahil.gautam.ext...@allotropia.de> CommitDate: Sat Apr 26 19:59:13 2025 +0200 tdf#164970 themes code cleanup, remove unneccessary assignment statements Change-Id: I1377794519e1b3781b48ed13d2f7f6887e8f9d56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184392 Reviewed-by: Sahil Gautam <sahil.gautam.ext...@allotropia.de> Tested-by: Jenkins diff --git a/cui/source/options/appearance.cxx b/cui/source/options/appearance.cxx index 6559a506dd4f..1cae201a5b0b 100644 --- a/cui/source/options/appearance.cxx +++ b/cui/source/options/appearance.cxx @@ -485,20 +485,21 @@ void SvxAppearanceTabPage::InitAppearance() m_xAppearanceDark->connect_toggled(LINK(this, SvxAppearanceTabPage, AppearanceChangeHdl)); Appearance nAppearance = static_cast<Appearance>(MiscSettings::GetAppColorMode()); + eCurrentAppearanceMode = nAppearance; + switch (nAppearance) { case Appearance::SYSTEM: m_xAppearanceSystem->set_state(TRISTATE_TRUE); - eCurrentAppearanceMode = Appearance::SYSTEM; break; case Appearance::LIGHT: m_xAppearanceLight->set_state(TRISTATE_TRUE); - eCurrentAppearanceMode = Appearance::LIGHT; break; case Appearance::DARK: m_xAppearanceDark->set_state(TRISTATE_TRUE); - eCurrentAppearanceMode = Appearance::DARK; break; + default: + eCurrentAppearanceMode = Appearance::SYSTEM; } }