|
|
|
@ -50,7 +50,6 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
@@ -50,7 +50,6 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
|
|
|
|
for (int i = 0; i < langs.size(); i++) |
|
|
|
|
bodyUI->transComboBox->insertItem(i, langs[i]); |
|
|
|
|
bodyUI->transComboBox->setCurrentIndex(locales.indexOf(Settings::getInstance().getTranslation())); |
|
|
|
|
bodyUI->cbMakeToxPortable->setChecked(Settings::getInstance().getMakeToxPortable()); |
|
|
|
|
|
|
|
|
|
bool showSystemTray = Settings::getInstance().getShowSystemTray(); |
|
|
|
|
|
|
|
|
@ -119,7 +118,6 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
@@ -119,7 +118,6 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
|
|
|
|
//general
|
|
|
|
|
connect(bodyUI->checkUpdates, &QCheckBox::stateChanged, this, &GeneralForm::onCheckUpdateChanged); |
|
|
|
|
connect(bodyUI->transComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(onTranslationUpdated())); |
|
|
|
|
connect(bodyUI->cbMakeToxPortable, &QCheckBox::stateChanged, this, &GeneralForm::onMakeToxPortableUpdated); |
|
|
|
|
connect(bodyUI->showSystemTray, &QCheckBox::stateChanged, this, &GeneralForm::onSetShowSystemTray); |
|
|
|
|
connect(bodyUI->startInTray, &QCheckBox::stateChanged, this, &GeneralForm::onSetAutostartInTray); |
|
|
|
|
connect(bodyUI->closeToTray, &QCheckBox::stateChanged, this, &GeneralForm::onSetCloseToTray); |
|
|
|
@ -172,11 +170,6 @@ void GeneralForm::onTranslationUpdated()
@@ -172,11 +170,6 @@ void GeneralForm::onTranslationUpdated()
|
|
|
|
|
Widget::getInstance()->setTranslation(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GeneralForm::onMakeToxPortableUpdated() |
|
|
|
|
{ |
|
|
|
|
Settings::getInstance().setMakeToxPortable(bodyUI->cbMakeToxPortable->isChecked()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GeneralForm::onSetShowSystemTray() |
|
|
|
|
{ |
|
|
|
|
Settings::getInstance().setShowSystemTray(bodyUI->showSystemTray->isChecked()); |
|
|
|
|