Skip to content

Commit

Permalink
fix: changed paletteType's config value
Browse files Browse the repository at this point in the history
  We only save config's value when caller update paletteType manually.
  • Loading branch information
18202781743 authored and kegechen committed Mar 1, 2024
1 parent 754d5ba commit 8561847
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/kernel/dguiapplicationhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,6 @@ void DGuiApplicationHelperPrivate::setPaletteType(DGuiApplicationHelper::ColorTy

D_Q(DGuiApplicationHelper);
Q_EMIT q->paletteTypeChanged(paletteType);

_d_dconfig->setValue(APP_THEME_TYPE, paletteType);
}

void DGuiApplicationHelperPrivate::initPaletteType() const
Expand Down Expand Up @@ -1773,6 +1771,7 @@ void DGuiApplicationHelper::setPaletteType(DGuiApplicationHelper::ColorType pale

d->initPaletteType();
d->setPaletteType(paletteType, true);
_d_dconfig->setValue(APP_THEME_TYPE, paletteType);
}

/*!
Expand Down

0 comments on commit 8561847

Please sign in to comment.