src/settingseditor/settingseditor.cpp

changeset 259
c27612f0eac0
parent 256
c6f5de03dc0f
child 264
76a025db4948
--- a/src/settingseditor/settingseditor.cpp	Wed Jun 22 23:51:06 2022 +0300
+++ b/src/settingseditor/settingseditor.cpp	Sun Jun 26 19:44:45 2022 +0300
@@ -22,6 +22,7 @@
 	this->ui.viewModeButtonGroup->setId(this->ui.viewModeSubWindows, int{QMdiArea::SubWindowView});
 	this->loadLocales();
 	this->setDefaults();
+	this->librariesEditor.setModel(&libraries);
 	QVBoxLayout* layout = new QVBoxLayout{this};
 	layout->addWidget(&librariesEditor);
 	this->ui.tabLdrawLibraries->setLayout(layout);
@@ -77,6 +78,7 @@
 
 void SettingsEditor::setDefaults()
 {
+	this->libraries.restoreFromSettings();
 	this->setCurrentLanguage(setting<Setting::Locale>());
 	this->ui.mainColorButton->setColor(setting<Setting::MainColor>());
 	this->ui.backgroundColorButton->setColor(setting<Setting::BackgroundColor>());

mercurial