Add Project::getMapScriptsFilePath() and rename text editor config members

This commit is contained in:
BigBahss
2020-11-21 17:33:16 -05:00
parent 662fb2a367
commit 3478846b60
5 changed files with 26 additions and 15 deletions

View File

@@ -30,7 +30,7 @@ PreferenceEditor::~PreferenceEditor()
}
void PreferenceEditor::populateFields() {
ui->lineEdit_TextEditor->setText(porymapConfig.getTextEditorCommand());
ui->lineEdit_TextEditor->setText(porymapConfig.getTextEditorCommandTemplate());
QStringList themes = { "default" };
QRegularExpression re(":/themes/([A-z0-9_-]+).qss");
@@ -44,7 +44,7 @@ void PreferenceEditor::populateFields() {
}
void PreferenceEditor::saveFields() {
porymapConfig.setTextEditorCommand(ui->lineEdit_TextEditor->text());
porymapConfig.setTextEditorCommandTemplate(ui->lineEdit_TextEditor->text());
if (themeSelector->currentText() != porymapConfig.getTheme()) {
const auto theme = themeSelector->currentText();