Skip to content
Permalink
Browse files

Make change of language and users top settings require restart

Changing these options will now trigger the new restart
request.
  • Loading branch information...
hacst committed Jun 13, 2015
1 parent d08336e commit 3f0e2d2c6bc53da68c6eb95877bad4c5c1f5b61d
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/mumble/LookConfig.cpp
@@ -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();

0 comments on commit 3f0e2d2

Please sign in to comment.
You can’t perform that action at this time.