mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Make change of language and users top settings require restart
Changing these options will now trigger the new restart request.
This commit is contained in:
parent
d08336e59b
commit
3f0e2d2c6b
@ -152,10 +152,15 @@ void LookConfig::load(const Settings &r) {
|
||||
}
|
||||
|
||||
void LookConfig::save() const {
|
||||
const QString oldLanguage = s.qsLanguage;
|
||||
if (qcbLanguage->currentIndex() == 0)
|
||||
s.qsLanguage = QString();
|
||||
else
|
||||
s.qsLanguage = qcbLanguage->itemData(qcbLanguage->currentIndex()).toString();
|
||||
|
||||
if (s.qsLanguage != oldLanguage) {
|
||||
s.requireRestartToApply = true;
|
||||
}
|
||||
|
||||
if (qcbStyle->currentIndex() == 0)
|
||||
s.qsStyle = QString();
|
||||
@ -180,7 +185,12 @@ void LookConfig::save() const {
|
||||
|
||||
s.ceExpand=static_cast<Settings::ChannelExpand>(qcbExpand->currentIndex());
|
||||
s.ceChannelDrag=static_cast<Settings::ChannelDrag>(qcbChannelDrag->currentIndex());
|
||||
s.bUserTop=qcbUsersTop->isChecked();
|
||||
|
||||
if (qcbUsersTop->isChecked() != s.bUserTop) {
|
||||
s.bUserTop = qcbUsersTop->isChecked();
|
||||
s.requireRestartToApply = true;
|
||||
}
|
||||
|
||||
s.aotbAlwaysOnTop = static_cast<Settings::AlwaysOnTopBehaviour>(qcbAlwaysOnTop->currentIndex());
|
||||
s.bAskOnQuit = qcbAskOnQuit->isChecked();
|
||||
s.bHideInTray = qcbHideTray->isChecked();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user