logic: use colorscheme name instead of path in appsettings

* With respect to a portable app package this makes sense ;)
This commit is contained in:
mlangkabel
2018-02-23 19:25:19 +01:00
parent ca20cb7bc9
commit 42342c5c5f
3 changed files with 24 additions and 7 deletions
@@ -449,7 +449,7 @@ void QtProjectWizzardContentPreferences::load()
void QtProjectWizzardContentPreferences::save()
{
ApplicationSettings* appSettings = ApplicationSettings::getInstance().get();
std::shared_ptr<ApplicationSettings> appSettings = ApplicationSettings::getInstance();
appSettings->setFontName(m_fontFace->currentText().toStdString());
@@ -458,7 +458,7 @@ void QtProjectWizzardContentPreferences::save()
appSettings->setTextEncoding(m_textEncoding->currentText().toStdString());
appSettings->setColorSchemePath(m_colorSchemePaths[m_colorSchemes->currentIndex()]);
appSettings->setColorSchemeName(m_colorSchemePaths[m_colorSchemes->currentIndex()].withoutExtension().fileName());
m_oldColorSchemeIndex = -1;
appSettings->setUseAnimations(m_useAnimations->isChecked());