src/settingseditor/settingseditor.cpp

changeset 286
04478da357d0
parent 285
99af8bf63d10
child 296
38f6fad61bad
--- a/src/settingseditor/settingseditor.cpp	Tue Jun 28 13:03:21 2022 +0300
+++ b/src/settingseditor/settingseditor.cpp	Tue Jun 28 14:10:27 2022 +0300
@@ -46,7 +46,7 @@
 
 void SettingsEditor::saveSettings()
 {
-	setSetting<Setting::Locale>(this->ui.language->currentData().toString());
+	//setSetting<Setting::Locale>(this->ui.language->currentData().toString());
 	setSetting<Setting::MainColor>(this->ui.mainColorButton->color());
 	setSetting<Setting::BackgroundColor>(this->ui.backgroundColorButton->color());
 	setSetting<Setting::SelectedColor>(this->ui.selectedColorButton->color());
@@ -63,6 +63,7 @@
 
 void SettingsEditor::loadLocales()
 {
+	/*
 	this->ui.language->clear();
 	QDir dir{":/locale"};
 	// Collect translation files in built-in resources
@@ -81,12 +82,13 @@
 		this->ui.language->addItem(languageName, localeCode);
 		this->ui.language->setItemIcon(this->ui.language->count() - 1, flag);
 	}
+	*/
 }
 
 void SettingsEditor::loadSettings()
 {
 	this->libraries.restoreFromSettings();
-	this->setCurrentLanguage(setting<Setting::Locale>());
+	//this->setCurrentLanguage(setting<Setting::Locale>());
 	this->ui.mainColorButton->setColor(setting<Setting::MainColor>());
 	this->ui.backgroundColorButton->setColor(setting<Setting::BackgroundColor>());
 	this->ui.selectedColorButton->setColor(setting<Setting::SelectedColor>());
@@ -101,6 +103,7 @@
 
 void SettingsEditor::setCurrentLanguage(const QString& localeCode)
 {
+	/*
 	for (int i = 0; i < this->ui.language->count(); i += 1)
 	{
 		if (this->ui.language->itemData(i) == localeCode)
@@ -109,4 +112,5 @@
 			break;
 		}
 	}
+	*/
 }

mercurial